[00:04] <coz_> hey all
[18:14] <nysosym> hi there
[18:24] <thorwil> 'lo
[18:57] <darkmatter> 'ello coz_
[18:57] <coz_> darkmatter,  hey guy
[19:32] <thorwil> 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] <doctormo> thorwil: Do you need my help?
[19:33] <thorwil> also, i thought if the setup.py doe sit right, that would be all needed
[19:33] <thorwil> doctormo: yes, desperately! after figuring out so many things, this packaging business is still a mystery for me
[19:35] <thorwil> doctormo: lp:backtestground/packaging
[19:43]  * thorwil pushes cleaned up version he's actually working with
[19:45] <doctormo> thorwil: OK, please start with clear question/request.
[19:45] <doctormo> Otherwise I have to think for a bit what you mean ;-)
[19:46] <thorwil> 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] <thorwil> doctormo: so the question is what i have to change for building a package that will install everything including the modules
[19:52] <doctormo> thorwil: Your commit looks funky. there is a directory in here with versions...
[19:53] <doctormo> thorwil: OK so I spot the problem
[19:53] <doctormo> thorwil: You can't use packages=['lib'], packages isn't a list of directories, it's a list of packages.
[19:53] <doctormo> and lib isn't a package
[19:55] <thorwil> i started to suspect that, but my experiments with package_dir and packages didn't lead to useful results, so far
[19:56] <doctormo> thorwil: No, that's because you don't have any packages
[19:56] <doctormo> Your source code indicates that what you have is a collection of modules, no packages.
[19:56] <doctormo> although they should probably be packaged into a proper set of python module packages....
[19:56] <doctormo> because at the moment it's a bit of a mess.
[19:57] <thorwil> i thought a package was more or less a dir with modules
[19:58] <doctormo> 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] <doctormo> You need to make a new directory in lib, this is your namespace.
[19:59] <doctormo> And make it unique
[19:59] <doctormo> then add package_dir={'':'lib'} and edit all your scripts to use the correct name space.
[20:01] <thorwil> doctormo: ok, thanks
[20:02] <doctormo> 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] <thorwil> doctormo: uhm, would just using py_modules work, too?
[20:03] <doctormo> 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] <doctormo> Because you'll be taking lots of confusing namespaces from the root global python dir.