How to instrument setup.py to use wheel packages

孤者浪人 提交于 2019-12-07 10:18:42

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/42277731/how-to-instrument-setup-py-to-use-wheel-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!