[Distutils] Overiding the site-packages/<module> directory name?

Bob Tanner tanner at real-time.com
Mon Nov 21 23:11:53 CET 2005


Is there a way to override the site-packages/<module> directory name?

I'm trying to make a debian package for FormEncode-0.4, by default 
"/usr/bin/python2.4 setup.py install  --no-compile -O0" creates a directory 
structure llike:

`-- usr
    |-- lib
    |   `-- python2.4
    |       `-- site-packages
    |           `-- FormEncode-0.4-py2.4.egg
    |               |-- EGG-INFO
    |               `-- formencode
    |                   |-- javascript
    |                   `-- util

Reading python-policy 1.4, I believe a 3rd party module should be just 

        /usr/lib/python<X>.<Y>/site-packages/<module-dir>

I would like to see

`-- usr
    |-- lib
    |   `-- python2.4
    |       `-- site-packages
    |           `-- formencode
    |               |-- javascript
    |               `-- util

I'm working around the "problem" by installing a formencode.pth pointing to 
the /usr/lib/python2.4/site-packages/FormEncode-0.4-py2.4.egg directory.

I've played around with FormEncode's setup.py and the site-packages path seems 
to be based on the setup(name=xxx, version=yyy), but I could not see any way 
to change these values without really messing up all the other tools that 
depend on these values.
-- 
Bob Tanner <tanner at real-time.com>          | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20051121/0e475843/attachment.pgp


More information about the Distutils-SIG mailing list