[Distutils] setuptools in fink

Kurt Schwehr schwehr at gmail.com
Thu Mar 30 01:42:41 CEST 2006


Phillip and others,

Does this look like it is installed correctly?  Or is it that I am calling
setup.py when I should be calling ez_setup?  And what should I pass to
ez_setup?  It does look like setuptools are installed incorrectly since
easy_install -h does not run.  So what is the right way?

Thanks!
-kurt

easy_install -h
Traceback (most recent call last):
  File "/sw/bin/easy_install", line 5, in ?
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources


cat /sw/lib/python2.4/site-packages/setuptools.pth
/sw/src/fink.build/root-setuptools-py24-0.6a10-1
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg

dpkg -L setuptools-py24 | head -n 15
/.
/sw
/sw/bin
/sw/bin/easy_install
/sw/bin/easy_install.py
/sw/lib
/sw/lib/python2.4
/sw/lib/python2.4/site-packages
/sw/lib/python2.4/site-packages/easy-install.pth
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/easy_install.py
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/easy_install.pyc
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg/EGG-INFO
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg
/EGG-INFO/entry_points.txt
/sw/lib/python2.4/site-packages/setuptools-0.6a10-py2.4.egg
/EGG-INFO/not-zip-safe


On 3/29/06, Phillip J. Eby <pje at telecommunity.com> wrote:
>
> At 10:40 AM 3/29/2006 -0500, Kurt Schwehr wrote:
> >This makes me think setup tools is ok since it is in the default
> >site-packages:
> >
> >& /sw/bin/python2.4
> >Python 2.4.2 (#1, Feb 24 2006, 17:05:21)
> >[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
> >Type "help", "copyright", "credits" or "license" for more information.
> > >>> from ez_setup import use_setuptools
>
> You didn't *call* use_setuptools, or import setuptools itself, so this
> doesn't actually mean that setuptools is okay.  The error message below is
> displayed when use_setuptools() is *called*, not when it's imported.
>
> My guess is that setuptools isn't actually on the path, either because it
> didn't install correctly, or because the configuration for building
> SQLAlchemy doesn't specify that its build requires setuptools.
>
>
> >But then the SQLAlchemy build tries to pull down setuptools, which I
> don't
> >want it to do:
> >
> >CC=gcc-3.3 /sw/bin/python2.4 setup.py build
> >
>
> >---------------------------------------------------------------------------
> >This script requires setuptools version 0.6a5 to run (even to display
> >help).  I will attempt to download it for you (from
> ><http://cheeseshop.python.org/packages/2.4/s/setuptools/>
> http://cheeseshop.python.org/packages/2.4/s/setuptools/
> >), but
> >you may need to enable firewall access for this script first.
> >I will start the download in 15 seconds.
>
> >---------------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20060329/9f4843fd/attachment.html 


More information about the Distutils-SIG mailing list