mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Issue #27919: Deprecate extra_path option in distutils.
This commit is contained in:
parent
2f9cc7ab0c
commit
5c071c1ff4
3 changed files with 15 additions and 0 deletions
|
|
@ -782,6 +782,12 @@ Deprecated features
|
||||||
now deprecated.
|
now deprecated.
|
||||||
(Contributed by Serhiy Storchaka in :issue:`25791` and :issue:`26754`.)
|
(Contributed by Serhiy Storchaka in :issue:`25791` and :issue:`26754`.)
|
||||||
|
|
||||||
|
* The undocumented ``extra_path`` argument to a distutils Distribution
|
||||||
|
is now considered
|
||||||
|
deprecated, will raise a warning during install if set. Support for this
|
||||||
|
parameter will be dropped in a future Python release and likely earlier
|
||||||
|
through third party tools. See :issue:`27919` for details.
|
||||||
|
|
||||||
|
|
||||||
Deprecated Python behavior
|
Deprecated Python behavior
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,7 @@ class install(Command):
|
||||||
self.compile = None
|
self.compile = None
|
||||||
self.optimize = None
|
self.optimize = None
|
||||||
|
|
||||||
|
# Deprecated
|
||||||
# These two are for putting non-packagized distributions into their
|
# These two are for putting non-packagized distributions into their
|
||||||
# own directory and creating a .pth file if it makes sense.
|
# own directory and creating a .pth file if it makes sense.
|
||||||
# 'extra_path' comes from the setup file; 'install_path_file' can
|
# 'extra_path' comes from the setup file; 'install_path_file' can
|
||||||
|
|
@ -344,6 +345,7 @@ class install(Command):
|
||||||
'scripts', 'data', 'headers',
|
'scripts', 'data', 'headers',
|
||||||
'userbase', 'usersite')
|
'userbase', 'usersite')
|
||||||
|
|
||||||
|
# Deprecated
|
||||||
# Well, we're not actually fully completely finalized yet: we still
|
# Well, we're not actually fully completely finalized yet: we still
|
||||||
# have to deal with 'extra_path', which is the hack for allowing
|
# have to deal with 'extra_path', which is the hack for allowing
|
||||||
# non-packagized module distributions (hello, Numerical Python!) to
|
# non-packagized module distributions (hello, Numerical Python!) to
|
||||||
|
|
@ -490,6 +492,10 @@ class install(Command):
|
||||||
self.extra_path = self.distribution.extra_path
|
self.extra_path = self.distribution.extra_path
|
||||||
|
|
||||||
if self.extra_path is not None:
|
if self.extra_path is not None:
|
||||||
|
log.warn(
|
||||||
|
"Distribution option extra_path is deprecated. "
|
||||||
|
"See issue27919 for details."
|
||||||
|
)
|
||||||
if isinstance(self.extra_path, str):
|
if isinstance(self.extra_path, str):
|
||||||
self.extra_path = self.extra_path.split(',')
|
self.extra_path = self.extra_path.split(',')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #27919: Deprecated ``extra_path`` distribution option in distutils
|
||||||
|
packaging.
|
||||||
|
|
||||||
- Issue #23229: Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to
|
- Issue #23229: Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to
|
||||||
match ``math.inf`` and ``math.nan``, and also ``cmath.infj`` and
|
match ``math.inf`` and ``math.nan``, and also ``cmath.infj`` and
|
||||||
``cmath.nanj`` to match the format used by complex repr.
|
``cmath.nanj`` to match the format used by complex repr.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue