Skip to content

Commit 923f03d

Browse files
committed
sysconfg
1 parent 3e10e3a commit 923f03d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Lib/sysconfig.py

Lines 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)