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

`distutils` is deprecated and removed in Python 3.12

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

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

評価

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

調査の方向性

setup.py から始め、src/debugpy/_vendored/pydevd 以下に列挙されている distutils の参照を調査します。これには、その setup ファイルと build ファイル、および version/inputhook モジュールが含まれます。Python 3.12 で影響を受けるパスを確認し、どの参照がアクティブなランタイム依存関係またはビルド依存関係であるかを特定します。関連する distutils の使用が、サポート対象の setup または実行パスをブロックしなくなれば完了です。

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

説明

needs repro

setup.py currently falls back to distutils if versioneer does not provide the required "build" command:
https://github.com/microsoft/debugpy/blob/fb6158a059bcc6a0391eb0f670d5885d664c102d/setup.py#L62-L65
But distutils no longer exists in Python 3.12, so this code needs to be updated: either versioneer always provides this, in which case the try/except is unnecessary, or it doesn't, in which case the distutils call needs to be replaced.

There are also calls to distutils in several places in the vendored pydevd, some of which may be important to fix; an rgrep gives these occurrences:

src/debugpy/_vendored/pydevd/setup.py:from distutils.extension import Extension
src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c:    "distutils": {
src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py:        from distutils.version import LooseVersion as V
src/debugpy/_vendored/pydevd/pydev_ipython/version.py:from distutils.version import LooseVersion
src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c:    "distutils": {
src/debugpy/_vendored/pydevd/setup_pydevd_cython.py:        from distutils.extension import Extension
src/debugpy/_vendored/pydevd/build_tools/build.py:                    from distutils import msvc9compiler
主要言語
Python
スター
2.5k
フォーク
202
平均マージ
5日 1時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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