Difference between "url" and "download_url"?
I registered a new package at PyPI today, bsddb185. Thinking to check things out, I tried "easy_install bsddb185" and got this output: % easy_install bsddb185 /Users/skip/local/lib/python2.6/site-packages/setuptools-0.6c7-py2.6.egg/setuptools/package_index.py:7: DeprecationWarning: the md5 module is deprecated; use hashlib instead from md5 import md5 Searching for bsddb185 Reading http://pypi.python.org/simple/bsddb185/ Reading http://www.webfast.com/~skip/python/ No local packages or download links found for bsddb185 error: Could not find suitable distribution for Requirement.parse('bsddb185') My setup call looks like this: setup(name='bsddb185', author='Skip Montanaro', author_email='skip@pobox.com', maintainer='Skip Montanaro', maintainer_email='skip@pobox.com', url='http://www.webfast.com/~skip/python/', download_url='http://www.webfast.com/~skip/python/bsddb-1.0.tar.gz', version='1.0', ext_modules=[ext], classifiers=['Development Status :: 6 - Mature', 'Intended Audience :: Developers', 'License :: OSI Approved :: Python Software Foundation License', 'Operating System :: MacOS', 'Operating System :: POSIX', 'Operating System :: POSIX :: BSD', 'Programming Language :: C', 'Programming Language :: Python', 'Topic :: Database', ] ) Why didn't easy_install try the download_url? -- Skip Montanaro - skip@pobox.com - http://www.webfast.com/~skip/
At 12:12 AM 12/9/2007 -0600, skip@pobox.com wrote:
My setup call looks like this:
setup(name='bsddb185', author='Skip Montanaro', author_email='skip@pobox.com', maintainer='Skip Montanaro', maintainer_email='skip@pobox.com', url='http://www.webfast.com/~skip/python/', download_url='http://www.webfast.com/~skip/python/bsddb-1.0.tar.gz',
Your tarball is incorrectly named: it should be bsddb185-1.0.tar.gz, since bsddb185 is the package name. If you want to force easy_install to recognize a link to that tarball as being for bsddb185 version 1.0, you must add "#egg=bsddb185-1.0" to the end of the URL.
>> download_url='http://www.webfast.com/~skip/python/bsddb-1.0.tar.gz', Phillip> Your tarball is incorrectly named: it should be Phillip> bsddb185-1.0.tar.gz, since bsddb185 is the package name. Whoops. Thanks... Skip
participants (2)
-
Phillip J. Eby -
skip@pobox.com