pkgsrc/lang/python310/patches/patch-Lib_sysconfig.py
adam a286824317 python310 py310-html-docs: added version 3.10.0
Python 3.10

Summary – Release highlights

New syntax features:

PEP 634, Structural Pattern Matching: Specification
PEP 635, Structural Pattern Matching: Motivation and Rationale
PEP 636, Structural Pattern Matching: Tutorial
bpo-12782, Parenthesized context managers are now officially allowed.

New features in the standard library:

PEP 618, Add Optional Length-Checking To zip.

Interpreter improvements:

PEP 626, Precise line numbers for debugging and other tools.

New typing features:

PEP 604, Allow writing union types as X | Y
PEP 613, Explicit Type Aliases
PEP 612, Parameter Specification Variables

Important deprecations, removals or restrictions:

PEP 644, Require OpenSSL 1.1.1 or newer
PEP 632, Deprecate distutils module.
PEP 623, Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
PEP 624, Remove Py_UNICODE encoder APIs
PEP 597, Add optional EncodingWarning
2021-10-05 19:07:13 +00:00

25 lines
920 B
Python

$NetBSD: patch-Lib_sysconfig.py,v 1.1 2021/10/05 19:07:13 adam Exp $
Remove _multiarch from config path (differs across platforms).
Simplify _sysconfigdata to include only platform name.
--- Lib/sysconfig.py.orig 2021-07-10 00:51:07.000000000 +0000
+++ Lib/sysconfig.py
@@ -394,16 +394,13 @@ def get_makefile_filename():
config_dir_name = f'config-{_PY_VERSION_SHORT}{sys.abiflags}'
else:
config_dir_name = 'config'
- if hasattr(sys.implementation, '_multiarch'):
- config_dir_name += f'-{sys.implementation._multiarch}'
return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
def _get_sysconfigdata_name():
- multiarch = getattr(sys.implementation, '_multiarch', '')
return os.environ.get(
'_PYTHON_SYSCONFIGDATA_NAME',
- f'_sysconfigdata_{sys.abiflags}_{sys.platform}_{multiarch}',
+ f'_sysconfigdata_{sys.platform}',
)