[Python-apps-team] packaging question - app installation directories

Piotr Ożarowski piotr at debian.org
Mon Aug 16 13:40:49 UTC 2010


Hi Steve,

[Steve Conklin, 2010-08-11]
>   I'm working on packaging a python app (d-rats) for debian, this is
> the first time I've dealt with
> packaging a python app.
> 
>   The app is set up to install its own modules in site-packages or
> dist-packages (and looks for
> them there), but they end up in
> /usr/lib/pymodules/python2.6/d_rats/platform.pyc. Are they ending
> up here because the dh tools automatically put them there? Is there a
> document describing the
> correct python installation directories for Debian?

yes, python-support uses /usr/lib/pymodules/python2.6/ at runtime for
python2.6

BTW: consider using --install-lib=/usr/share/packagename
--install-scripts=/usr/share/packagename to avoid polluting global
namespace (unless application's modules can be used outside the
application)
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



More information about the Python-apps-team mailing list