Skip to content

Commit a7430e9

Browse files
committed
remove copying prefix/lib content
1 parent 6587467 commit a7430e9

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

docs/changelog/2182.bugfix.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Fixed path collision that could lead to a PermissionError or writing to system
2-
directories when using PyPy3.8 - by :user:`mgorny`.
1+
Remove copying prefix/lib content to the new virtualenv on PyPy3, which
2+
conflicts with the new layout used in PyPy3.8 - by :user:`mgorny`.

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ def _shared_libs(cls):
3737
def to_lib(self, src):
3838
return self.dest / "lib" / src.name
3939

40-
@classmethod
41-
def sources(cls, interpreter):
42-
for src in super(PyPy3Posix, cls).sources(interpreter):
43-
yield src
44-
host_lib = Path(interpreter.system_prefix) / "lib"
45-
if host_lib.exists() and host_lib.is_dir():
46-
for path in host_lib.iterdir():
47-
if path.is_dir():
48-
continue
49-
yield PathRefToDest(path, dest=cls.to_lib)
50-
5140

5241
class Pypy3Windows(PyPy3, WindowsSupports):
5342
"""PyPy 2 on Windows"""

0 commit comments

Comments
 (0)