Skip to content

Commit

Permalink
add pypy schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip authored and jaraco committed Jul 2, 2020
1 parent 4f1d159 commit 2f1fae1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions distutils/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@
'data' : '$base',
},
'nt': WINDOWS_SCHEME,
'pypy': {
'purelib': '$base/site-packages',
'platlib': '$base/site-packages',
'headers': '$base/include/$dist_name',
'scripts': '$base/bin',
'data' : '$base',
},
'pypy_nt': {
'purelib': '$base/site-packages',
'platlib': '$base/site-packages',
'headers': '$base/include/$dist_name',
'scripts': '$base/Scripts',
'data' : '$base',
},
}

# user site schemes
Expand Down Expand Up @@ -455,6 +469,12 @@ def finalize_other(self):
def select_scheme(self, name):
"""Sets the install directories by applying the install schemes."""
# it's the caller's problem if they supply a bad name!
if (hasattr(sys, 'pypy_version_info') and
not name.endswith(('_user', '_home'))):
if os.name == 'nt':
name = 'pypy_nt'
else:
name = 'pypy'
scheme = INSTALL_SCHEMES[name]
for key in SCHEME_KEYS:
attrname = 'install_' + key
Expand Down

0 comments on commit 2f1fae1

Please sign in to comment.