Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 923f03d

Browse filesBrowse files
committed
sysconfg
1 parent 3e10e3a commit 923f03d
Copy full SHA for 923f03d

File tree

1 file changed

+16
-0
lines changed
Filter options

1 file changed

+16
-0
lines changed

‎Lib/sysconfig.py

Copy file name to clipboardExpand all lines: Lib/sysconfig.py
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@
5959
}
6060

6161

62+
if (not (hasattr(sys, 'real_prefix') or
63+
sys.prefix != sys.base_prefix) and
64+
'RPM_BUILD_ROOT' not in os.environ):
65+
_INSTALL_SCHEMES['posix_prefix'] = {
66+
'stdlib': '{installed_base}/local/{platlibdir}/python{py_version_short}',
67+
'platstdlib': '{platbase}/local/{platlibdir}/python{py_version_short}',
68+
'purelib': '{base}/local/lib/python{py_version_short}/site-packages',
69+
'platlib': '{platbase}/local/{platlibdir}/python{py_version_short}/site-packages',
70+
'include':
71+
'{installed_base}/local/include/python{py_version_short}{abiflags}',
72+
'platinclude':
73+
'{installed_platbase}/local/include/python{py_version_short}{abiflags}',
74+
'scripts': '{base}/local/bin',
75+
'data': '{base}/local',
76+
}
77+
6278
# NOTE: site.py has copy of this function.
6379
# Sync it when modify this function.
6480
def _getuserbase():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.