在问题 #6634 中报告说,在使用 (PEP 517) 构建轮子时,不需要setup.py clean
失败时显示的回溯。
摘抄:
Running `pyo3-pack build -i python --no-sdist --bindings=cffi`
Error: Command '['pyo3-pack', 'build', '-i', 'python', '--no-sdist', '--bindings=cffi']' returned non-zero exit status 1.
Building wheel for cffi-pure (PEP 517) ... error
ERROR: Failed building wheel for cffi-pure
Running setup.py clean for cffi-pure
Running command /home/konsti/pyo3-pack/venv/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-sphjswqi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
ERROR: Failed cleaning build dir for cffi-pure
Failed to build cffi-pure
:眼睛:
你不必解释这里发生了什么,但如果你能解释就好了。 😛
我在创建它后关闭了它,因为当我查看代码时,似乎只有在启用详细模式时才会显示回溯,在这种情况下,它看起来并不是真正的问题(它是详细模式)。 但我不是 100% 确定,所以我现在将它保持开放以保持完整性。
最有用的评论
这看起来像一个错误,除非我遗漏了什么。
_build_one_pep517
None
在异常时返回wheel
是None
,则执行_clean_one
setup.py clean
并在错误级别记录异常