summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-01 17:55:33 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-09-01 17:55:33 (GMT)
commit5c071c1ff4c96ccd9d5a1ae381a3bb3ac4590223 (patch)
tree5c44bfedbba437b74fc42b91f8c742979f32353f /Lib/distutils/command
parent2f9cc7ab0c5e4c240b7412af2e33d086cd900077 (diff)
downloadcpython-5c071c1ff4c96ccd9d5a1ae381a3bb3ac4590223.zip
cpython-5c071c1ff4c96ccd9d5a1ae381a3bb3ac4590223.tar.gz
cpython-5c071c1ff4c96ccd9d5a1ae381a3bb3ac4590223.tar.bz2
Issue #27919: Deprecate extra_path option in distutils.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/install.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index fca05d6..0258d3de 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -175,6 +175,7 @@ class install(Command):
self.compile = None
self.optimize = None
+ # Deprecated
# These two are for putting non-packagized distributions into their
# own directory and creating a .pth file if it makes sense.
# 'extra_path' comes from the setup file; 'install_path_file' can
@@ -344,6 +345,7 @@ class install(Command):
'scripts', 'data', 'headers',
'userbase', 'usersite')
+ # Deprecated
# Well, we're not actually fully completely finalized yet: we still
# have to deal with 'extra_path', which is the hack for allowing
# non-packagized module distributions (hello, Numerical Python!) to
@@ -490,6 +492,10 @@ class install(Command):
self.extra_path = self.distribution.extra_path
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):
self.extra_path = self.extra_path.split(',')