setuptools patch
Robert Kern
robert.kern at gmail.com
Fri Oct 26 18:11:32 UTC 2007
James Mills wrote:
> Hi all,
>
> Please review and comment (again). I'd like to see
> this patch in Mercurial as it'll help with development
> for those that like to use setuptools and we'll (I can)
> be able to provide EGG distributions of Mercurial
> in future releases.
> +try:
> + from setuptools import setup, Extension
Instead of trying to import setuptools (which people may have installed, but do
not always want to use), I recommend checking if 'setuptools' is in sys.modules.
When using easy_install, setuptools will already be imported, so this will be
picked up. Those who are building eggs can do the following:
python -c "import setuptools; execfile('setup.py')"
or use a script that does much the same thing.
--
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 Mercurial-devel
mailing list