[SciPy-user] egg dependency?

Robert Kern robert.kern at gmail.com
Fri Dec 2 20:15:48 CST 2005


John Hunter wrote:
>>>>>>"Robert" == Robert Kern <robert.kern at gmail.com> writes:
> 
>     Robert> Apparently, it thinks you do have setuptools installed.
> 
> I do -- but my setuptools doesn't come with egg.  Go figure.
> 
> You may want something along these lines (worked for me)
> 
> try:
>     from setuptools import setup as old_setup
>     from setuptools.command import bdist_egg
>     have_setuptools = 1
> except ImportError:
>     from distutils.core import setup as old_setup
>     have_setuptools = 0

Actually, we can drop the "from setuptools import setup as old_setup"
line entirely since setuptools.setup is distutils.core.setup . Unlike
scipy.distutils, setuptools doesn't change that function. I wish we
could avoid it, too.

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter



More information about the SciPy-user mailing list