Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can python setup.py install use wheels?

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

python setup.py install

In particular, I have a custom package that requires pandas. While pandas installs perfectly fine with pip (because it grabs the wheel), pandas won't install while running python setup.py (due to pandas having missing dependencies on my machine)

Or perhaps, how do other people handle pandas as a dependency in there projects? Must I include all of pandas dependencies in my setup.py file?

Thanks

like image 295
mgcdanny Avatar asked Oct 11 '16 18:10

mgcdanny


1 Answers

One solution is to use pip to install you project. pip is able to handle your setup.py correctly and will use wheels by default if available.

So you can try to replace:

python setup.py install by pip install .

That should work.

like image 193
Rémi Berson Avatar answered Oct 30 '22 14:10

Rémi Berson