diff options
| author | Bernát Gábor <bgabor8@bloomberg.net> | 2021-07-14 17:45:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-14 17:45:30 +0100 |
| commit | c52fe3ea099e3d07c7fcf8982353eaede25e2e3f (patch) | |
| tree | 1fa473fedb184af470976a5b5ef05fa90ce884dd /src/virtualenv/create/via_global_ref | |
| parent | 0705f2050fb9d19d55dad3f3a07845d03e55e1c5 (diff) | |
| download | virtualenv-c52fe3ea099e3d07c7fcf8982353eaede25e2e3f.tar.gz | |
Support without distutils (#2146)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'src/virtualenv/create/via_global_ref')
| -rw-r--r-- | src/virtualenv/create/via_global_ref/builtin/cpython/cpython2.py | 2 | ||||
| -rw-r--r-- | src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/virtualenv/create/via_global_ref/builtin/cpython/cpython2.py b/src/virtualenv/create/via_global_ref/builtin/cpython/cpython2.py index 555b0c5..dc822bc 100644 --- a/src/virtualenv/create/via_global_ref/builtin/cpython/cpython2.py +++ b/src/virtualenv/create/via_global_ref/builtin/cpython/cpython2.py @@ -36,7 +36,7 @@ class CPython2(CPython, Python2): @property def include(self): # the pattern include the distribution name too at the end, remove that via the parent call - return (self.dest / self.interpreter.distutils_install["headers"]).parent + return (self.dest / self.interpreter.install_path("headers")).parent @classmethod def modules(cls): diff --git a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py index fb59015..9249442 100644 --- a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py +++ b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy2.py @@ -41,7 +41,7 @@ class PyPy2(PyPy, Python2): @property def include(self): - return self.dest / self.interpreter.distutils_install["headers"] + return self.dest / self.interpreter.install_path("headers") @classmethod def modules(cls): |
