File tree 2 files changed +2
-20
lines changed 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def _resolve_scheme(name):
144
144
try :
145
145
resolved = sysconfig .get_preferred_scheme (key )
146
146
except Exception :
147
- resolved = fw .scheme (_pypy_hack ( name ) )
147
+ resolved = fw .scheme (name )
148
148
return resolved
149
149
150
150
@@ -161,7 +161,7 @@ def _inject_headers(name, scheme):
161
161
"""
162
162
# Bypass the preferred scheme, which may not
163
163
# have defined headers.
164
- fallback = _load_scheme (_pypy_hack ( name ) )
164
+ fallback = _load_scheme (name )
165
165
scheme .setdefault ('headers' , fallback ['headers' ])
166
166
return scheme
167
167
@@ -171,14 +171,6 @@ def _scheme_attrs(scheme):
171
171
return {f'install_{ key } ' : scheme [key ] for key in SCHEME_KEYS }
172
172
173
173
174
- def _pypy_hack (name ):
175
- PY37 = sys .version_info < (3 , 8 )
176
- old_pypy = hasattr (sys , 'pypy_version_info' ) and PY37
177
- prefix = not name .endswith (('_user' , '_home' ))
178
- pypy_name = 'pypy' + '_nt' * (os .name == 'nt' )
179
- return pypy_name if old_pypy and prefix else name
180
-
181
-
182
174
class install (Command ):
183
175
description = "install everything from build directory"
184
176
Original file line number Diff line number Diff line change @@ -156,8 +156,6 @@ def _extant(path):
156
156
157
157
158
158
def _get_python_inc_posix (prefix , spec_prefix , plat_specific ):
159
- if IS_PYPY and sys .version_info < (3 , 8 ):
160
- return os .path .join (prefix , 'include' )
161
159
return (
162
160
_get_python_inc_posix_python (plat_specific )
163
161
or _extant (_get_python_inc_from_config (plat_specific , spec_prefix ))
@@ -246,14 +244,6 @@ def get_python_lib(
246
244
sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
247
245
"""
248
246
249
- if IS_PYPY and sys .version_info < (3 , 8 ):
250
- # PyPy-specific schema
251
- if prefix is None :
252
- prefix = PREFIX
253
- if standard_lib :
254
- return os .path .join (prefix , "lib-python" , sys .version_info .major )
255
- return os .path .join (prefix , 'site-packages' )
256
-
257
247
early_prefix = prefix
258
248
259
249
if prefix is None :
You can’t perform that action at this time.
0 commit comments