These are my links for June 8th:
- PackagingGuide/Python – Ubuntu Wiki – A guide how to create ubuntu (debian) packages for python apps.<br />
I ran across a problem that on older Ubuntu machines (Hardy) the python modules were packaged into /usr/lib/python2.6/site-packages directory while with newer Ubuntu versions (Karmic) it is packed into /usr/share/pyshared.<br />
The cause of this behaviour are different python-support and dpkg versions. The newer ones can determine what directory is good (therefore using pyshared). The site-packages directory even does not exist (and seems not to be used) on newer Ubuntu versions, so building-on an old ubuntu makes it unuseable on newer Ubuntu versions.<br />
Solution is to set the install_dir of the install_lib target using a setup.cfg to the dist-packages directory. (changing it to pyshared is not working well as you might have to create some files in /usr/share/python-support/ on your own).