diff options
| author | Bernát Gábor <bgabor8@bloomberg.net> | 2021-03-16 08:06:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-16 08:06:10 +0000 |
| commit | 71f96cdb71093ec64f3eecd9e4ea51793fd9b165 (patch) | |
| tree | ecc0b72a582fdfd3f5a62f944d44321a8ec83cff /src/virtualenv/create | |
| parent | 742e145aa72a5889b671c58369bb285d0ee6d7fb (diff) | |
| download | virtualenv-71f96cdb71093ec64f3eecd9e4ea51793fd9b165.tar.gz | |
Fix PyPy3 Windows stlib path (#2072)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/create')
| -rw-r--r-- | src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py index 9588706..65b2e09 100644 --- a/src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py +++ b/src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py @@ -17,14 +17,6 @@ class PyPy3(PyPy, Python3Supports): def exe_stem(cls): return "pypy3" - @property - def stdlib(self): - """ - PyPy3 seems to respect sysconfig only for the host python... - virtual environments purelib is instead lib/pythonx.y - """ - return self.dest / "lib" / "python{}".format(self.interpreter.version_release_str) / "site-packages" - @classmethod def exe_names(cls, interpreter): return super(PyPy3, cls).exe_names(interpreter) | {"pypy"} @@ -33,6 +25,11 @@ class PyPy3(PyPy, Python3Supports): class PyPy3Posix(PyPy3, PosixSupports): """PyPy 2 on POSIX""" + @property + def stdlib(self): + """PyPy3 respects sysconfig only for the host python, virtual envs is instead lib/pythonx.y/site-packages""" + return self.dest / "lib" / "python{}".format(self.interpreter.version_release_str) / "site-packages" + @classmethod def _shared_libs(cls): return ["libpypy3-c.so", "libpypy3-c.dylib"] @@ -54,6 +51,11 @@ class Pypy3Windows(PyPy3, WindowsSupports): """PyPy 2 on Windows""" @property + def stdlib(self): + """PyPy3 respects sysconfig only for the host python, virtual envs is instead Lib/site-packages""" + return self.dest / "Lib" / "site-packages" + + @property def bin_dir(self): """PyPy3 needs to fallback to pypy definition""" return self.dest / "Scripts" |
