brandizzi
brandizzi

Reputation: 27080

pip does not install dependency declared in setup() requires parameter

I have a Python project which depends upon the wsgi_intercept package. I added it to the requires parameter from my setup.py file:

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

Then I execute the sdist command:

$ python setup.py sdist upload

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

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

Upvotes: 3

Views: 1263

Answers (1)

Vikas
Vikas

Reputation: 8948

Looks like the keyword args of distutils.core.setup() are changed. I use install_requires in my setup.py and it works fine.

Change the keyword requires to install_requires and see if it works.

Upvotes: 6

Related Questions