[00:04] hey all === jano is now known as stjohnmedrano === james is now known as Guest67345 === james is now known as Guest56292 === james is now known as Guest20740 [18:14] hi there [18:24] 'lo [18:57] 'ello coz_ [18:57] darkmatter, hey guy [19:32] doctormo: hi! my backtestground ppa package doesn't install any modules, a fact i overlooked because the installed scripts worked on my system due to a little tweak here :/ [19:33] thorwil: Do you need my help? [19:33] also, i thought if the setup.py doe sit right, that would be all needed [19:33] doctormo: yes, desperately! after figuring out so many things, this packaging business is still a mystery for me [19:35] doctormo: lp:backtestground/packaging [19:43] * thorwil pushes cleaned up version he's actually working with [19:45] thorwil: OK, please start with clear question/request. [19:45] Otherwise I have to think for a bit what you mean ;-) [19:46] doctormo: i have a setup.py that works fine if used as such. but the package i created does not install any of modules that are in the "lib" dir of my source tree [19:47] doctormo: so the question is what i have to change for building a package that will install everything including the modules [19:52] thorwil: Your commit looks funky. there is a directory in here with versions... [19:53] thorwil: OK so I spot the problem [19:53] thorwil: You can't use packages=['lib'], packages isn't a list of directories, it's a list of packages. [19:53] and lib isn't a package [19:55] i started to suspect that, but my experiments with package_dir and packages didn't lead to useful results, so far [19:56] thorwil: No, that's because you don't have any packages [19:56] Your source code indicates that what you have is a collection of modules, no packages. [19:56] although they should probably be packaged into a proper set of python module packages.... [19:56] because at the moment it's a bit of a mess. [19:57] i thought a package was more or less a dir with modules [19:58] thorwil: It is, but it's a dir with __init__.py in it as well as the namespace. Your scripts in bin don't use lib.alpha_composite they just use alpha_composite. [19:59] You need to make a new directory in lib, this is your namespace. [19:59] And make it unique [19:59] then add package_dir={'':'lib'} and edit all your scripts to use the correct name space. [20:01] doctormo: ok, thanks [20:02] have a look at some of the python libs I've packaged, they may give you an idea about how to organise modules and packages. [20:02] doctormo: uhm, would just using py_modules work, too? [20:03] thorwil: sort of, it will work, but you'll have the wrath of python devs on your back if you ever wanted to put it into debian or Ubuntu. [20:03] Because you'll be taking lots of confusing namespaces from the root global python dir. === daker_ is now known as daker