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

Robert Kern robert.kern at gmail.com
Mon Apr 20 23:24:08 CEST 2009


On 2009-04-20 15:49, Christian Hudon wrote:

> 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?

You could ensure that you always have a setuptools-based setup.py:

python -c "import setuptools; execfile('setup.py')" install --single-version-.....

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the Distutils-SIG mailing list