Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Python 3.12/PEP 632 compatibility (distutils removal)

オープン
#89 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
build-system

調査の方向性

Start by locating the distutils imports in the repository, then run the documented SETUPTOOLS_USE_DISTUTILS=stdlib tox -e tests-py312 command to reproduce the failure. Update the imports to the equivalent setuptools APIs described in the linked migration guide, and consider the work done when the Python 3.12 test environment passes without vendored distutils.

索引モデルが issue の本文から書いたものです。

説明

The distutils package was removed in Python 3.12, per PEP 632. It is transitionally provided by setuptools, but this is deprecated.

Incremental contains distutils imports. Its tests fail on Python 3.12 when setuptools' vendored distutils is disabled:

$ SETUPTOOLS_USE_DISTUTILS=stdlib TOX_TESTENV_PASSENV=SETUPTOOLS_USE_DISTUTILS tox -e tests-py312
...
tests-py312 run-test: commands[5] | coverage run -p examplesetup.py install
Traceback (most recent call last):
  File ".../incremental/examplesetup.py", line 1, in <module>
    from setuptools import setup
  File ".../incremental/.tox/tests-py312/lib/python3.12/site-packages/setuptools/__init__.py", line 9, in <module>
    import distutils.core
ModuleNotFoundError: No module named 'distutils'
.../incremental/.tox/tests-py312/lib/python3.12/site-packages/coverage/inorout.py:503: CoverageWarning: Module incremental was never imported. (module-not-imported)
  self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
.../incremental/.tox/tests-py312/lib/python3.12/site-packages/coverage/control.py:888: CoverageWarning: No data was collected. (no-data-collected)
  self._warn("No data was collected.", slug="no-data-collected")
ERROR: InvocationError for command .../incremental/.tox/tests-py312/bin/coverage run -p examplesetup.py install (exited with code 1)
__________________________________________________________________ summary ___________________________________________________________________
ERROR:   tests-py312: commands failed

The imports should be updated to reference the equivalent bits of setuptools.

主要言語
Python
スター
144
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

twisted/incremental のほかの issue

twisted/incremental の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。