Skip to content

Commit 3cff34f

Browse files
authored
Remove outdated PyPy stdlib overrides (#2426)
1 parent ae2594c commit 3cff34f

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

docs/changelog/2426.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop unneeded shims for PyPy3 directory structure

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Python and OS Compatibility
8989
virtualenv works with the following Python interpreter implementations:
9090

9191
- `CPython <https://www.python.org/>`_ versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
92-
- `PyPy <https://pypy.org/>`_ 2.7 and 3.5+.
92+
- `PyPy <https://pypy.org/>`_ 2.7, 3.6, 3.7, 3.8, 3.9
9393

9494
This means virtualenv works on the latest patch version of each of these minor versions. Previous patch versions are
9595
supported on a best effort approach.

src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ def exe_names(cls, interpreter):
2020
class PyPy3Posix(PyPy3, PosixSupports):
2121
"""PyPy 3 on POSIX"""
2222

23-
@property
24-
def stdlib(self):
25-
"""PyPy3 respects sysconfig only for the host python, virtual envs is instead lib/pythonx.y/site-packages"""
26-
return self.dest / "lib" / f"pypy{self.interpreter.version_release_str}" / "site-packages"
27-
2823
@classmethod
2924
def _shared_libs(cls, python_dir):
3025
# glob for libpypy3-c.so, libpypy3-c.dylib, libpypy3.9-c.so ...
@@ -64,18 +59,6 @@ class Pypy3Windows(PyPy3, WindowsSupports):
6459
def less_v37(self):
6560
return self.interpreter.version_info.minor < 7
6661

67-
@property
68-
def stdlib(self):
69-
"""PyPy3 respects sysconfig only for the host python, virtual envs is instead Lib/site-packages"""
70-
if self.less_v37:
71-
return self.dest / "site-packages"
72-
return self.dest / "Lib" / "site-packages"
73-
74-
@property
75-
def bin_dir(self):
76-
"""PyPy3 needs to fallback to pypy definition"""
77-
return self.dest / "Scripts"
78-
7962
@classmethod
8063
def _shared_libs(cls, python_dir):
8164
# glob for libpypy*.dll and libffi*.dll

0 commit comments

Comments
 (0)