[05:40:25] [connected at Sun Oct 29 05:40:25 2006] [05:40:25] <> *** Looking up your hostname... [05:40:25] <> *** Checking ident [05:40:26] <> *** No identd (auth) response [05:40:26] <> *** Found your hostname [05:40:26] <> *** Your host is calvino.freenode.net[calvino.freenode.net/6667], running version hyperion-1.0.2 [05:40:26] [I have joined #peak] [05:54:34] ** AVGVSTO has joined us [05:54:48] good morning [06:02:50] hello [06:12:00] ** AVGVSTO has left IRC ("KVIrc 3.2.0 'Realia'") [06:51:31] ** AVGVSTO has joined us [06:55:51] coderanger: i have a few problems with setuptools, could you help me? [06:56:00] I can try [06:56:11] ok, thanks [06:58:05] when i build my egg distribution, i can't to mantain the order of packages' dirs [06:59:05] if my package_dir is foo, and the packages are foo/ci foo/bi etc [06:59:24] You mean the data folders or the code? [07:00:22] the code [07:00:39] do you have foo/__init__.py [07:00:43] yes [07:01:17] oh, no [07:01:30] i ave foo/bi/__init__.py [07:01:34] i ave foo/ci/__init__.py [07:01:46] And you put packages = ['foo', 'foo/bi', 'foo/ci'] ? [07:02:19] i use find_packages('foo') [07:02:54] and package_dirs('':'foo') [07:03:07] *package_dir() [07:03:32] I would try adding foo/__init__.py [07:05:11] but in foo is not a "true" package, but in foo there is a script, a few modules and data_files (images ecc.) [07:05:24] *but foo is not..... [07:05:29] And you don't need the package_dir setting [07:06:12] I don't know if find_packages will recurse through a non-package [07:06:55] if i don't set packace_dir('foo'), find_packagek does not work [07:07:07] I think I see what you need [07:07:33] package_dir = {':: 'foo'} [07:07:40] packages = find_packages() [07:09:36] i have already a setup.py with these settings [07:09:53] but when i build my egg distribution [07:10:03] You said you were giving 'foo' to find_packages [07:10:12] Which is wrong [07:10:30] why? [07:10:51] because you are saying foo/ is you module directory [07:11:03] the packages under that are "bi/" "ci/" [07:11:14] which don't start with "foo" [07:13:20] ok, but if i use find_packages() without 'foo' packages_find() does not work because setup.py is not in foo [07:13:58] Does this work if you hardcode the needed paths? [07:14:26] foo is in root (/root/foo) and setup.py too is in /root [07:15:08] Thats normal [07:16:54] i don't understand what is my mistake [07:17:16] Does it work if you give packages = ['foo/bi', 'foo/ci'] [07:18:33] yes, but there are many packages, and i would not to write a list [07:18:48] just use os.listdir [07:30:34] i am trying [07:44:15] with os.listdir, i would have to exclude all the files [07:45:03] i hope to find an easy way [07:45:53] [p for p in os.listdir() if os.path.isdir(p)] [07:46:16] or in your case [07:46:52] [os.path.join('foo', p) for p in os.listdir('foo') if os.path.isdir(os.path.join('foo', p))] [07:55:31] ok, it works [07:56:47] but now i have to try if the script works [07:57:00] have fun [07:57:16] thanks! [09:04:32] coderanger: in your opinion, why, if I can an sdist, my code works, and if I can a bdist_egg, the script does not find the modules? [09:04:46] *if I build [09:14:51] I go away, thanks for all coderanger! [09:14:54] ** AVGVSTO has left us [10:23:39] ** bitmvnch has joined us [12:12:36] ** bitmvnch has left IRC () [13:21:01] ** bitmvnch has joined us [14:03:59] any good examples of the peak security api in action [14:16:11] good question :) [14:20:05] ** bitmvnch has left IRC (Read error: 104 (Connection reset by peer)) [15:02:31] ** bitmvnch has joined us [18:12:37] ** bitmvnch has left IRC () [22:48:45] ** coderanger has left IRC (Read error: 104 (Connection reset by peer)) [22:51:11] ** coderanger has joined us [22:52:45] ** coderanger has left IRC (Remote closed the connection) [22:53:53] ** coderanger has joined us