Skip to content

Commit

Permalink
remove copying prefix/lib content
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 4, 2021
1 parent 6587467 commit a7430e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/changelog/2182.bugfix.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Fixed path collision that could lead to a PermissionError or writing to system
directories when using PyPy3.8 - by :user:`mgorny`.
Remove copying prefix/lib content to the new virtualenv on PyPy3, which
conflicts with the new layout used in PyPy3.8 - by :user:`mgorny`.
11 changes: 0 additions & 11 deletions src/virtualenv/create/via_global_ref/builtin/pypy/pypy3.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ def _shared_libs(cls):
def to_lib(self, src):
return self.dest / "lib" / src.name

@classmethod
def sources(cls, interpreter):
for src in super(PyPy3Posix, cls).sources(interpreter):
yield src
host_lib = Path(interpreter.system_prefix) / "lib"
if host_lib.exists() and host_lib.is_dir():
for path in host_lib.iterdir():
if path.is_dir():
continue
yield PathRefToDest(path, dest=cls.to_lib)


class Pypy3Windows(PyPy3, WindowsSupports):
"""PyPy 2 on Windows"""
Expand Down

0 comments on commit a7430e9

Please sign in to comment.