Robert Zaremba
Robert Zaremba

Reputation: 8481

How to instrument setup.py to use wheel packages

In my setup.py I have a dependency for numpy (in install_requires).

Is it possible to instrument the setup function to use wheel packages rather then source ones and not compile the whole numpy?

Note: When I do pip install numpy it downloads the binary package of numpy. However python setup.py install gets the source package.

Upvotes: 4

Views: 1672

Answers (1)

Leon
Leon

Reputation: 32484

The wheel package was introduced with the purpose of fixing the problems with source distributions that were used by setuptools. Although setuptools had their own Egg format for built distributions that predated wheel by 8 years, wheel is currently considered the standard for built and binary packaging for Python. As of today, setuptools don't yet support the wheel format.

Upvotes: 3

Related Questions