Marko Samastur wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I have a problem that I'm not able to solve on my own. I'm using python2.2 that comes with Mandrake Linux distribution 8.2.
I have a tree of python sources that I'd like to package in more or less the same tree, which would be installed in site-packages under subdirectories pyortal and pyortal-modules.
If I understand python documentation correctly, if I want those modules to be easily accessible for everyone, I need to have .pth file in site-packages that points to all subdirectories (and right, if I create it manually, it works). The problem I have is that if I run bdist_rpm, I can see a message that is telling me that .pth is being build, but the file is missing in the created rpm.
Why .pth files ? Why not simply *copy* the code to site-packages ?
If I build with bdist only, it creates and includes pyortal.pth (but it only lists pyortal directory in it without any subdirectory). So, what am I doing wrong?
While I'm at it...is there an easy way to include normal text files in module distribution? Again, if I'm not mistaken, the current way to achieve this is to list every one of them in MANIFEST.in.
I think you only need to put *.txt into MANIFEST.in (provided your text files use that extension). -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/