[Distutils] Help making setuptools install more like plain distutils one

Christian Hudon chrish at apstat.com
Mon Apr 20 22:49:08 CEST 2009


P.J. Eby wrote:
> At 01:28 PM 4/20/2009 -0400, Christian Hudon wrote:
>> Is there a way to ask setuptools to do an install that looks more 
>> like a standard distutils install?
>
> Yes, use "setup.py install --single-version-externally-managed 
> --record=/some/file".  This will install the distutils way, and record 
> all the installed files in /some/file (which you can then discard if 
> you like).
Thanks for the answers. I looked at both options, and the 
--single-version-externally-managed one would be easier for me: compared 
to the bdist_dumb, it saves me the steps of finding and untarring the 
tarball. Also, the bdist_dumb commands creates tarballs that can be 
untarred at "/" (they contain /usr, etc.) while I would need something 
more like the equivalent of what --prefix does (tarball that start with 
lib, etc. that can be untarred in /usr/local or /usr...)

The only thing I'd need would be way to reliably determine if I'm 
dealing with setuptools-based setup.py or not. I can always call "python 
setup.py installl --help" and look if 
--single-version-externally-managed is present in the output. Is there a 
cleaner version of doing this?

Thanks for the help,

  Christian



More information about the Distutils-SIG mailing list