Pip does not install the dependency declared in setup (), requires a parameter

I have a Python project that is package dependent wsgi_intercept. I added it to the parameter requiresfrom my file setup.py:

from setuptools import setup
setup( #...
       #...
       requires = [ 'wsgi_intercept',
               # ...
       ]
 )

Then I execute the command sdist:

$ python setup.py sdist upload

However, when I install the package with pip, it does not install wsgi_intercept, and my package may not work correctly.

What am I missing? Should I add another configuration to pip. I read about requirement files pip, but they seem to be used by the scatter, not the distributor.

+3
source share
1 answer

, args distutils.core.setup() changed. install_requires setup.py, .

requires install_requires , .

+6

All Articles