Build failure due to setuptools in pyproject.toml
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- build-system
調査の方向性
まず pyproject.toml を調査し、issue に示されている pip と Python のバージョンを使って、報告された source-distribution の build を再現します。setuptools の要件をリンクされている setuptools の issue と比較し、パッケージが build 依存関係をインストールして、報告された ModuleNotFoundError が発生せずに build を完了できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
It looks like https://github.com/pytest-dev/pytest-forked/blob/master/pyproject.toml is causing build failures due to setuptools ~= 41.4 (console output below). This has been seen in other packages as well. A possible solution is to get rid of the file, or at least the setuptools pin.
10:13:52 Collecting #pytest-forked
10:13:52 Downloading pytest-forked-1.3.0.tar.gz (9.8 kB)
10:13:52 Installing build dependencies: started
10:13:53 Installing build dependencies: finished with status 'error'
10:13:53 ERROR: Command errored out with exit status 1:
10:13:53 command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hbrecn75/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i http://build.locusdev.net:10001/simple --extra-index-url https://pypi.python.org/simple --trusted-host build.locusdev.net -- 'setuptools ~= 41.4' 'setuptools_scm ~= 3.3' 'wheel ~= 0.33.6'
10:13:53 cwd: None
10:13:53 Complete output (20 lines):
10:13:53 Looking in indexes: http://build.locusdev.net:10001/simple, https://pypi.python.org/simple/, https://pypi.python.org/simple
10:13:53 Collecting setuptools~=41.4
10:13:53 Downloading setuptools-41.6.0.zip (852 kB)
10:13:53 ERROR: Command errored out with exit status 1:
10:13:53 command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fobv7n3k/setuptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fobv7n3k/setuptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-fobv7n3k/setuptools/pip-egg-info
10:13:53 cwd: /tmp/pip-install-fobv7n3k/setuptools/
10:13:53 Complete output (9 lines):
10:13:53 Traceback (most recent call last):
10:13:53 File "<string>", line 1, in <module>
10:13:53 File "/tmp/pip-install-fobv7n3k/setuptools/setuptools/__init__.py", line 6, in <module>
10:13:53 import distutils.core
10:13:53 File "/usr/local/lib/python3.7/site-packages/_distutils_hack/__init__.py", line 83, in create_module
10:13:53 return importlib.import_module('setuptools._distutils')
10:13:53 File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
10:13:53 return _bootstrap._gcd_import(name[level:], package, level)
10:13:53 ModuleNotFoundError: No module named 'setuptools._distutils'
10:13:53 ----------------------------------------
10:13:53 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
10:13:53 WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available.
10:13:53 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
10:13:53 ----------------------------------------
10:13:53 ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hbrecn75/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i http://build.locusdev.net:10001/simple --extra-index-url https://pypi.python.org/simple --trusted-host build.locusdev.net -- 'setuptools ~= 41.4' 'setuptools_scm ~= 3.3' 'wheel ~= 0.33.6' Check the logs for full command output.
10:13:53 WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available.
10:13:53 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
- 主要言語
- Python
- スター
- 83
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/pytest-forked のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pytest-dev/pytest-forked#106 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
pytest-dev/pytest-forked#84 ·
-
Fork per subpath オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pytest-dev/pytest-forked#94 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
pytest-dev/pytest-forked#88 · コメント 12 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pytest-dev/pytest-forked#87 · リアクション 1 件 ·
pytest-dev/pytest-forked の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100