[Distutils] Installing via ez_setup.py reports error

Phillip J. Eby pje at telecommunity.com
Mon May 22 17:29:26 CEST 2006

At 10:37 AM 5/22/2006 -0400, Nathan R. Yergler wrote:
>I'm working on increasing my setuptools-foo-zen-karma-whatever, and have
>a question.  According to the docs at
>you just need to download ez_setup.py and run it to install setuptools.
>  I'm trying to install to a custom location.  When I run the following
>$ PYTHONPATH=lib/ python ez_setup.py --script-dir bin/ --install-dir
>lib/ -a --site-dirs lib/
>setuptools is installed as requested, but the following error is reported
>Installed /home/nathan/Projects/zope.i18n/lib/setuptools-0.6b1-py2.4.egg
>Processing dependencies for setuptools==0.6b1
>error: No urls, filenames, or requirements specified (see --help)

When ez_setup.py sees any command-line arguments, it runs easy_install with 
them once setuptools is bootstrapped.  EasyInstall then sees that there are 
only options and no arguments, so it complains.  I'm not sure if there's a 
reasonable fix for this, but I'll look into it.

>On a separate topic, echoing Jim's comments regarding paths, it seems
>silly that when I use the following command (omitting the explicit
>$ python ez_setup.py --script-dir bin/ --install-dir lib/ -a --site-dirs
>I'm told that ./lib is not on sys.path; isn't the point of site-dirs to
>assert that a directory *will be* on the Python path?

Actually, it's to assert that .pth files will be processed in that 
directory at Python startup.

I guess there is no escaping the Path Nanny, after all.  :)  Well, there's 
-m, actually.

More information about the Distutils-SIG mailing list