[Distutils] Some code to play with
Wed, 14 Apr 1999 09:48:21 -0400
Quoth Gregor Hoffleit, on 11 April 1999:
> Just a quick question: Does the package support something like
> autoconf's DESTDIR ? I.e. installing the built package in a directory
> different from the actual target ? I'm not sure if that's in the scope
> of `build --dir' or `install --prefix'.
The installation directories are up to the 'install' command. The most
convenient way to set them is by setting the prefix, but you can (or
will be able to) set every target directory individually. RTFS for the
options that control this -- I haven't documented anything yet because
I'm not sure the option names are final.
> DESTDIR is necessary for building Debian packages: Debian's packaging
> tools work on files in `pwd`/debian/tmp. Generally, something like
> "./configure --prefix /usr; make; make DESTDIR=`pwd`/debian/tmp
> install" is used. Note that this is different from setting prefix to
In general, that's true -- but as the Distutils currently stand, the
prefix is used *solely* to generate the installation directories. So it
doesn't (yet) matter which one you set. I'm not sure if that will
remain true forever, though.
Greg Ward - software developer firstname.lastname@example.org
Corporation for National Research Initiatives
1895 Preston White Drive voice: +1-703-620-8990
Reston, Virginia, USA 20191-5434 fax: +1-703-620-0913