74b47a89d4
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations. Among the major new features in Python 3.7 are: PEP 539, new C API for thread-local storage PEP 545, Python documentation translations New documentation translations: Japanese, French, and Korean. PEP 552, Deterministic pyc files PEP 553, Built-in breakpoint() PEP 557, Data Classes PEP 560, Core support for typing module and generic types PEP 562, Customization of access to module attributes PEP 563, Postponed evaluation of annotations PEP 564, Time functions with nanosecond resolution PEP 565, Improved DeprecationWarning handling PEP 567, Context Variables Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode) The insertion-order preservation nature of dict objects is now an official part of the Python language spec. Notable performance improvements in many areas.
26 lines
976 B
Python
26 lines
976 B
Python
$NetBSD: patch-Lib_sysconfig.py,v 1.1 2018/07/03 03:55:40 adam Exp $
|
|
|
|
Remove _multiarch from config path (differs across platforms).
|
|
Simplify _sysconfigdata to include only platform name.
|
|
|
|
--- Lib/sysconfig.py.orig 2016-12-23 02:21:19.000000000 +0000
|
|
+++ Lib/sysconfig.py
|
|
@@ -337,17 +337,13 @@ def get_makefile_filename():
|
|
config_dir_name = 'config-%s%s' % (_PY_VERSION_SHORT, sys.abiflags)
|
|
else:
|
|
config_dir_name = 'config'
|
|
- if hasattr(sys.implementation, '_multiarch'):
|
|
- config_dir_name += '-%s' % sys.implementation._multiarch
|
|
return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
|
|
|
|
|
|
def _get_sysconfigdata_name():
|
|
return os.environ.get('_PYTHON_SYSCONFIGDATA_NAME',
|
|
- '_sysconfigdata_{abi}_{platform}_{multiarch}'.format(
|
|
- abi=sys.abiflags,
|
|
+ '_sysconfigdata_{platform}'.format(
|
|
platform=sys.platform,
|
|
- multiarch=getattr(sys.implementation, '_multiarch', ''),
|
|
))
|
|
|
|
|