[Distutils] pypi and easy_install

Phillip J. Eby pje at telecommunity.com
Thu Dec 20 04:42:17 CET 2007

At 02:09 AM 12/20/2007 +0100, Giampaolo Rodola' wrote:
>I noticed tonight that I can't download/install a package of mine
>hosted on pypi by using easy_install.
>By running "ez_setup.py pyftpdlib" I get:
>--- snippet --
>options (after parsing config files):
>no commands known yet
>options (after parsing command line):
>option dict for 'aliases' command:
>   {}
>option dict for 'easy_install' command:
>   {'args': ('command line', ['pyftpdlib']), 'verbose': ('command
>line', 1)}
>Searching for pyftpdlib
>Reading http://pypi.python.org/simple/pyftpdlib/
>Reading http://code.google.com/p/pyftpdlib/

That's because your download URL points to 
http://pyftpdlib.googlecode.com/files/pyftpdlib_0.2.0.tar.gz, which 
is not a valid distutils-generated filename.

(A valid filename for pytftpdblib, version 0.2.0, would be 

You need to use "setup.py sdist" to generate your source 
distribution, then it will have the right filename.  (You'll also be 
able to use "setup.py sdist upload" to upload it to PyPI in that case.)

More information about the Distutils-SIG mailing list