問題#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
を実行し、エラーレベルで例外をログに記録します