Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 390
brandizzi Avatar asked Jun 19 '26 19:06

brandizzi


1 Answers

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.

like image 149
Vikas Avatar answered Jun 22 '26 09:06

Vikas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!