How to specify explicit python packaging dependencies in setup.py? -


this question has answer here:

i want create python package mycode, installed using pip (setup.py), has dependency on package base. incoporate package dependency follow setup.py instructions , created entry in setup function of setup.py reads:

'requires': ['base'] 

after have created package python setup.py sdist, tried install via pip install, installed mycode, nothing base. seems requires entry in setup.py ignored.

any ideas going wrong?

you need specify install_requires instead, see new , changed setup keywords.

the requires field vague , imprecise, setuptools folk (so easy_install, pip evolved) added more specific fields. in addition, there setup_requires , test_requires fields dependencies required setup.py , running tests.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -