File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def _resolve_scheme(name):
145
145
try :
146
146
resolved = sysconfig .get_preferred_scheme (key )
147
147
except Exception :
148
- resolved = fw .scheme (_pypy_hack ( name ) )
148
+ resolved = fw .scheme (name )
149
149
return resolved
150
150
151
151
@@ -162,7 +162,7 @@ def _inject_headers(name, scheme):
162
162
"""
163
163
# Bypass the preferred scheme, which may not
164
164
# have defined headers.
165
- fallback = _load_scheme (_pypy_hack ( name ) )
165
+ fallback = _load_scheme (name )
166
166
scheme .setdefault ('headers' , fallback ['headers' ])
167
167
return scheme
168
168
@@ -172,14 +172,6 @@ def _scheme_attrs(scheme):
172
172
return {f'install_{ key } ' : scheme [key ] for key in SCHEME_KEYS }
173
173
174
174
175
- def _pypy_hack (name ):
176
- PY37 = sys .version_info < (3 , 8 )
177
- old_pypy = hasattr (sys , 'pypy_version_info' ) and PY37
178
- prefix = not name .endswith (('_user' , '_home' ))
179
- pypy_name = 'pypy' + '_nt' * (os .name == 'nt' )
180
- return pypy_name if old_pypy and prefix else name
181
-
182
-
183
175
class install (Command ):
184
176
description = "install everything from build directory"
185
177
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