From b0b9dae622b4bcebf96555753d1310319a90bbbe Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 19 Aug 2015 20:47:45 +0100 Subject: Allow disabling of the sys.path rewrite technique using an environment variable. --- setuptools/command/easy_install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setuptools/command/easy_install.py') 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(): -- cgit v1.2.3