[Distutils] [Python Language Summit] Distutils / Packaging survey

Josselin Mouette joss at debian.org
Mon Feb 2 11:56:08 CET 2009


Le samedi 31 janvier 2009 à 14:10 +0000, Floris Bruynooghe a écrit :
> On Fri, Jan 30, 2009 at 11:02:36PM +0000, Floris Bruynooghe wrote:
> > Ok, that was supposed to read:
> > 
> > prefix = sys.prefix
> > libdir = sys.prefix/lib/pythonX.Y/site-packages/pkgname
> > datadir = sys.prefix/share/mypackage
> > docdir = sys.prefix/share/doc/mypackage
> 
> Just how many time will I get this wrong??
> 
> libdir = sys.prefix/lib/pythonX.Y/site-packages
> datadir = sys.prefix/share/<project_name>
> docdir = sys.prefix/share/doc/<project_name>

Please don’t add more confusion by adding a libdir meaning something
different from the existing autoconf macros.

prefix = sys.prefix
libdir = prefix+"/lib"  # not sys.prefix; redefining prefix must lead to redefining the others
pkglibdir = libdir+"/"+pkgname
datadir = prefix+"/share"
pkgdatadir = datadir+"/"+pkgname
pythondir = libdir+"pythonX.Y/site-packages"
pkgpythondir = pythondir+modulename
...

(And you can add the prefix / exec_prefix distinction for systems that
require it.)

-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090202/b99cfc92/attachment.pgp>


More information about the Distutils-SIG mailing list