forked from pool/python314
Update F00251-change-user-install-location.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=26
This commit is contained in:
@@ -24,9 +24,9 @@ Co-authored-by: Miro Hrončok <miro@hroncok.cz>
|
|||||||
Co-authored-by: Michal Cyprian <m.cyprian@gmail.com>
|
Co-authored-by: Michal Cyprian <m.cyprian@gmail.com>
|
||||||
Co-authored-by: Lumír Balhar <frenzy.madness@gmail.com>
|
Co-authored-by: Lumír Balhar <frenzy.madness@gmail.com>
|
||||||
---
|
---
|
||||||
Lib/sysconfig/__init__.py | 49 ++++++++++++++++++++++++++++++++++++++++++++-
|
Lib/sysconfig/__init__.py | 51 ++++++++++++++++++++++++++++++++++++++++++++-
|
||||||
Lib/test/test_sysconfig.py | 17 +++++++++++++--
|
Lib/test/test_sysconfig.py | 17 +++++++++++++--
|
||||||
2 files changed, 63 insertions(+), 3 deletions(-)
|
2 files changed, 65 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
--- a/Lib/sysconfig/__init__.py
|
--- a/Lib/sysconfig/__init__.py
|
||||||
+++ b/Lib/sysconfig/__init__.py
|
+++ b/Lib/sysconfig/__init__.py
|
||||||
@@ -42,7 +42,7 @@ Co-authored-by: Lumír Balhar <frenzy.madness@gmail.com>
|
|||||||
def _get_implementation():
|
def _get_implementation():
|
||||||
return 'Python'
|
return 'Python'
|
||||||
|
|
||||||
@@ -167,6 +172,19 @@ if _HAS_USER_BASE:
|
@@ -167,13 +172,28 @@ if _HAS_USER_BASE:
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +62,16 @@ Co-authored-by: Lumír Balhar <frenzy.madness@gmail.com>
|
|||||||
_SCHEME_KEYS = ('stdlib', 'platstdlib', 'purelib', 'platlib', 'include',
|
_SCHEME_KEYS = ('stdlib', 'platstdlib', 'purelib', 'platlib', 'include',
|
||||||
'scripts', 'data')
|
'scripts', 'data')
|
||||||
|
|
||||||
@@ -259,11 +277,40 @@ def _extend_dict(target_dict, other_dict
|
_PY_VERSION = sys.version.split()[0]
|
||||||
|
_PY_VERSION_SHORT = f'{sys.version_info[0]}.{sys.version_info[1]}'
|
||||||
|
_PY_VERSION_SHORT_NO_DOT = f'{sys.version_info[0]}{sys.version_info[1]}'
|
||||||
|
+_PREFIX = os.path.normpath(sys.prefix)
|
||||||
|
_BASE_PREFIX = os.path.normpath(sys.base_prefix)
|
||||||
|
+_EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
|
||||||
|
_BASE_EXEC_PREFIX = os.path.normpath(sys.base_exec_prefix)
|
||||||
|
# Mutex guarding initialization of _CONFIG_VARS.
|
||||||
|
_CONFIG_VARS_LOCK = threading.RLock()
|
||||||
|
@@ -259,11 +279,40 @@ def _extend_dict(target_dict, other_dict
|
||||||
target_dict[key] = value
|
target_dict[key] = value
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user