如何检测 setup.py 以使用 wheel 包

How to instrument setup.py to use wheel packages

在我的 setup.py 中,我有 numpy 的依赖项(在 install_requires 中)。

是否可以检测 setup 函数以使用 wheel 包而不是源包而不是编译整个 numpy?

注意: 当我执行 pip install numpy 时,它会下载 numpy 的二进制包。然而python setup.py install获取源码包

wheel 包是 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