Closed tklltkioc closed 3 years ago
Once upon a time you could not rely on setuptools
being present and trying to hardwire a dependency on specific versions could cause lots of problems.
From what I remember, if you install the wheel
package you should then be able to do bdist_wheel
even when distutils
is used.
Try that for now and when next working on wrapt
will look into how safe it is now to depend on setuptools
explicitly.
ok. Thank you for your reply
This is considered very safe now, in fact pip injects setuptools for you, using distutils can generate a warning, and there’s even a PEP to remove distutils. Ideally, you could add a pyproject.toml that includes the setuptools requirement.
Note that this is the third highest library on https://pythonwheels.com/ without wheels available. :(
Switch to setuptools is done in 1.13.0 and PyPi from that version will also host wheels.
os:centos 7.9 python:3.7.4
When i run command
python setup.py bdist_wheel
,i get error:invalid command 'bdist_wheel'
and after modify setup.py one line, wheel is build success. As follows:so have you ever considered using setuptools to replace distutils.In particular, setuptools is an enhanced alternative to distutils.