[Distutils] Python Deb Packages

Damian Johnson atagar1 at gmail.com
Tue Nov 16 20:13:34 CET 2010

Hi, I'm working on deb/rpm packaging for a terminal monitor of tor relays
[1] and running into an issue with the egg-info distutil autogenerates.

My project currently installs to the default '/usr/share/pyshared' [2] but
according to the debian policy for private python modules [3] it should be
installed to '/usr/share' instead (my program is an application and there's
no reason for it to be importable by other modules). The problem with doing
this is that the egg-info metadata is hardcoded in
'distutils/command/install.py' to be added on install, and having an
egg-info file on '/usr/share' causes a lintian error when generating the
deb. Also, most things I've been reading seems to say that the package
belongs in '/usr/share/pyshared' and that removing the egg-info is kinda
evil [4].

Help would be appreciated. Cheers! -Damian

[1] http://www.atagar.com/arm/
[2] https://svn.torproject.org/svn/arm/trunk/setup.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20101116/b6584905/attachment.html>

More information about the Distutils-SIG mailing list