File tree 2 files changed +11
-8
lines changed
src/virtualenv/create/via_global_ref/builtin/pypy
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change
1
+ Fix PyPy3 stdlib on Windows is incorrect - by :user: `gaborbernat `.
Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ class PyPy3(PyPy, Python3Supports):
17
17
def exe_stem (cls ):
18
18
return "pypy3"
19
19
20
- @property
21
- def stdlib (self ):
22
- """
23
- PyPy3 seems to respect sysconfig only for the host python...
24
- virtual environments purelib is instead lib/pythonx.y
25
- """
26
- return self .dest / "lib" / "python{}" .format (self .interpreter .version_release_str ) / "site-packages"
27
-
28
20
@classmethod
29
21
def exe_names (cls , interpreter ):
30
22
return super (PyPy3 , cls ).exe_names (interpreter ) | {"pypy" }
@@ -33,6 +25,11 @@ def exe_names(cls, interpreter):
33
25
class PyPy3Posix (PyPy3 , PosixSupports ):
34
26
"""PyPy 2 on POSIX"""
35
27
28
+ @property
29
+ def stdlib (self ):
30
+ """PyPy3 respects sysconfig only for the host python, virtual envs is instead lib/pythonx.y/site-packages"""
31
+ return self .dest / "lib" / "python{}" .format (self .interpreter .version_release_str ) / "site-packages"
32
+
36
33
@classmethod
37
34
def _shared_libs (cls ):
38
35
return ["libpypy3-c.so" , "libpypy3-c.dylib" ]
@@ -53,6 +50,11 @@ def sources(cls, interpreter):
53
50
class Pypy3Windows (PyPy3 , WindowsSupports ):
54
51
"""PyPy 2 on Windows"""
55
52
53
+ @property
54
+ def stdlib (self ):
55
+ """PyPy3 respects sysconfig only for the host python, virtual envs is instead Lib/site-packages"""
56
+ return self .dest / "Lib" / "site-packages"
57
+
56
58
@property
57
59
def bin_dir (self ):
58
60
"""PyPy3 needs to fallback to pypy definition"""
You can’t perform that action at this time.
0 commit comments