aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-08-19 20:47:45 +0100
committerJason R. Coombs <jaraco@jaraco.com>2015-08-19 20:47:45 +0100
commitb0b9dae622b4bcebf96555753d1310319a90bbbe (patch)
tree09398b080362f503db5d8284569b3e3e463a9cb9 /setuptools/command/easy_install.py
parente2124f4d4c74770ccc0b9fc5f0e17becda578063 (diff)
downloadexternal_python_setuptools-b0b9dae622b4bcebf96555753d1310319a90bbbe.tar.gz
external_python_setuptools-b0b9dae622b4bcebf96555753d1310319a90bbbe.tar.bz2
external_python_setuptools-b0b9dae622b4bcebf96555753d1310319a90bbbe.zip
Allow disabling of the sys.path rewrite technique using an environment variable.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 2b639c1b..7c0dfa99 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1612,7 +1612,8 @@ class RewritePthDistributions(PthDistributions):
""")
-PthDistributions = RewritePthDistributions
+if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'rewrite') == 'rewrite':
+ PthDistributions = RewritePthDistributions
def _first_line_re():