Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65409
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: Advice needed for Python packaging - can't find required library during installation |
| Date | 2014-02-04 08:30 +0100 |
| References | <14a9fb0b-75a8-4d22-8c5b-75b1bf02493e@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6381.1391499012.18130.python-list@python.org> (permalink) |
thebiggestbangtheory@gmail.com writes:
> I am trying to package up a very simple python app. In my setup.py file I have a couple of lines that include the following:
>
> from setuptools import setup
>
> setup(
> name='ban',
> version='0.1',
> packages=['ban',],
> description='Python Distribution Utilities',
> author='Ban',
> author_email='ban@tbbt.com',
> package_data={'ban': ['data/*.dat']},
> long_description=open('README.txt').read(),
> install_requires=['Google-Safe-Browsing-v2-Lookup'],
> )
> ...
> Processing dependencies for ban==0.1
> Searching for Google-Safe-Browsing-v2-Lookup
> Reading http://pypi.python.org/simple/Google-Safe-Browsing-v2-Lookup/
> No local packages or download links found for Google-Safe-Browsing-v2-Lookup
> error: Could not find suitable distribution for Requirement.parse('Google-Safe-Browsing-v2-Lookup')
> **************************
>
> Issue #1
>
> Apparently the setup script cannot find the package - Google-Safe-Browsing-v2-Lookup . However, I can install this package via pip.
>
> What should I specify in the setup.py file instead of install_requires=['Google-Safe-Browsing-v2-Lookup'] so that the library is properly installed ?
I suppose that "setuptools" is confused by the "-" in the package
names together with these "-" being omitted in the uploaded file
(https://pypi.python.org/packages/source/G/Google-Safe-Browsing-v2-Lookup/Google%20Safe%20Browsing%20v2%20Lookup-0.1.0.tar.gz5").
If this supposition is correct, then you would either need to
contact the "setuptools" author (to get "setuptools" handle this case)
or the "Google Safe Browsing" author to get a filename more
in line with the package name.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Advice needed for Python packaging - can't find required library during installation thebiggestbangtheory@gmail.com - 2014-02-03 15:33 -0800
Re: Advice needed for Python packaging - can't find required library during installation dieter <dieter@handshake.de> - 2014-02-04 08:30 +0100
Re: Advice needed for Python packaging - can't find required library during installation thebiggestbangtheory@gmail.com - 2014-02-04 07:01 -0800
csiph-web