At 02:09 AM 12/20/2007 +0100, Giampaolo Rodola' wrote:
Hi, 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 pyftpdlib-0.2.0.tar.gz.) 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.)
You're right, the setup.py included in the tarball reports an invalid
download url.
I fixed the issue in setup.py and used "setup.py register" for
uploading the new package on pypi again.
As you can see from here:
http://pypi.python.org/pypi?name=pyftpdlib&version=0.2.0&:action=disp...
...now the download url is correct, but the problem still remains. :-\
2007/12/20, Phillip J. Eby
At 02:09 AM 12/20/2007 +0100, Giampaolo Rodola' wrote:
Hi, 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 pyftpdlib-0.2.0.tar.gz.)
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.)
participants (2)
-
Giampaolo Rodola'
-
Phillip J. Eby