Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
50d17611
Commit
50d17611
authored
Jun 29, 2020
by
mattip
Committed by
Jason R. Coombs
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no Makefile with PyPy and has own layout for python stdlib, site-packages
parent
12f74fb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
35 deletions
+44
-35
distutils/sysconfig.py
distutils/sysconfig.py
+44
-35
No files found.
distutils/sysconfig.py
View file @
50d17611
...
...
@@ -142,6 +142,14 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
If 'prefix' is supplied, use it instead of sys.base_prefix or
sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
"""
if
IS_PYPY
:
# PyPy-specific schema
if
prefix
is
None
:
prefix
=
PREFIX
if
standard_lib
:
return
os
.
path
.
join
(
prefix
,
"lib-python"
,
sys
.
version
[
0
])
return
os
.
path
.
join
(
prefix
,
'site-packages'
)
if
prefix
is
None
:
if
standard_lib
:
prefix
=
plat_specific
and
BASE_EXEC_PREFIX
or
BASE_PREFIX
...
...
@@ -503,6 +511,7 @@ def get_config_vars(*args):
_config_vars['prefix'] = PREFIX
_config_vars['exec_prefix'] = EXEC_PREFIX
if not IS_PYPY:
# For backward compatibility, see issue19555
SO = _config_vars.get('EXT_SUFFIX')
if SO is not None:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment