Can python setup.py install drives?

I am using setuptools. Is there a way to use the following commands to use wheels instead of the source?

python setup.py install 

In particular, I have a custom package that requires pandas. While pandas installs fine with pip (since it grabs the wheel), pandas will not install when python setup.py starts (due to pandas with missing dependencies on my machine)

Or maybe how other people treat pandas as addiction in projects? Should I include all pandas dependencies in setup.py?

thanks

+6
source share
1 answer

One solution is to use pip to install the project. pip is capable of handling your setup.py correctly and will use the default wheels, if available.

So you can try replacing:

python setup.py install on pip install .

That should work.

+4
source

Source: https://habr.com/ru/post/988630/


All Articles