Modify ↓
Opened 3 years ago
Last modified 17 months ago
#13456 assigned defect
distutils is deprecated and will be removed in Python 3.12
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | general | Version: | 1.5.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
|
||
API Changes: | |||
Internal Changes: |
Description
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated
$ git grep -w distutils mirror/trunk mirror/trunk:.travis.yml: print_sitelib='from distutils.sysconfig import get_python_lib; print(get_python_lib())' mirror/trunk:trac/dist.py:`distutils.command.build` and `setuptools.command.install_lib` classes mirror/trunk:trac/dist.py:from distutils import log as distlog mirror/trunk:trac/dist.py:from distutils.cmd import Command mirror/trunk:trac/dist.py:from distutils.command.build import build as _build mirror/trunk:trac/dist.py:from distutils.errors import DistutilsOptionError
Attachments (0)
Change History (8)
follow-up: 6 comment:1 by , 3 years ago
follow-up: 3 comment:2 by , 3 years ago
setuptools has a short guide for porting from distutils:
distutils.cmd.Command
→setuptools.Command
distutils.command.{build_clib,build_ext,build_py,sdist}
→setuptools.command.*
distutils.log
→ (no replacement yet)distutils.errors.*
→setuptools.errors.*
comment:5 by , 2 years ago
distutils.log
→ (no replacement yet)
Fixed in setuptools 60.2.0.
- Setuptools now relies on the Python logging infrastructure to log messages. Instead of using
distutils.log.*
, uselogging.getLogger(name).*
.
comment:6 by , 23 months ago
Release Notes: | modified (diff) |
---|
distutils.sysconfig.get_python_lib() should probably be replaceable via sysconfig already in Python 3.2+:
import sysconfig; print(sysconfig.get_path('purelib'))
Thanks. Committed in [17644].
comment:7 by , 21 months ago
Milestone: | 1.6 → 1.6.1 |
---|
comment:8 by , 21 months ago
Owner: | set to |
---|---|
Status: | new → assigned |
Proposed changes in [dfa6c286e/jomae.git] (jomae.git@t13456).
Note:
See TracTickets
for help on using tickets.
distutils.sysconfig.get_python_lib() should probably be replaceable via sysconfig already in Python 3.2+: