diff options
| author | Bernat Gabor <bgabor8@bloomberg.net> | 2020-02-26 15:12:44 +0000 |
|---|---|---|
| committer | Bernat Gabor <bgabor8@bloomberg.net> | 2020-02-26 15:19:14 +0000 |
| commit | 734fe023f11458f993c49f91b158de774c94d4a4 (patch) | |
| tree | 3832b6298e0aaaad84ebe538410aa58f80b8423a /src/virtualenv/create | |
| parent | f352f56998813332a58f009bc463ccedc0cb48c8 (diff) | |
| download | virtualenv-734fe023f11458f993c49f91b158de774c94d4a4.tar.gz | |
Disable distutils fixup for python 3
Until https://github.com/pypa/pip/issues/7778 is fixed and released.
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/create')
| -rw-r--r-- | src/virtualenv/create/via_global_ref/api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtualenv/create/via_global_ref/api.py b/src/virtualenv/create/via_global_ref/api.py index 8ee0c5c..0d39073 100644 --- a/src/virtualenv/create/via_global_ref/api.py +++ b/src/virtualenv/create/via_global_ref/api.py @@ -53,6 +53,8 @@ class ViaGlobalRefApi(Creator): def patch_distutils_via_pth(self): """Patch the distutils package to not be derailed by its configuration files""" + if self.interpreter.version_info.major == 3: + return # TODO: remove this, for her to bypass: https://github.com/pypa/pip/issues/7778 patch_file = Path(__file__).parent / "_distutils_patch_virtualenv.py" with ensure_file_on_disk(patch_file, self.app_data) as resolved_path: text = resolved_path.read_text() |
