Annotation of pkgsrc/lang/python310/patches/patch-Lib_sysconfig.py, revision 1.1
1.1 ! adam 1: $NetBSD: patch-Lib_sysconfig.py,v 1.1 2020/10/10 20:20:12 adam Exp $
! 2:
! 3: Remove _multiarch from config path (differs across platforms).
! 4: Simplify _sysconfigdata to include only platform name.
! 5:
! 6: --- Lib/sysconfig.py.orig 2021-07-10 00:51:07.000000000 +0000
! 7: +++ Lib/sysconfig.py
! 8: @@ -394,16 +394,13 @@ def get_makefile_filename():
! 9: config_dir_name = f'config-{_PY_VERSION_SHORT}{sys.abiflags}'
! 10: else:
! 11: config_dir_name = 'config'
! 12: - if hasattr(sys.implementation, '_multiarch'):
! 13: - config_dir_name += f'-{sys.implementation._multiarch}'
! 14: return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
! 15:
! 16:
! 17: def _get_sysconfigdata_name():
! 18: - multiarch = getattr(sys.implementation, '_multiarch', '')
! 19: return os.environ.get(
! 20: '_PYTHON_SYSCONFIGDATA_NAME',
! 21: - f'_sysconfigdata_{sys.abiflags}_{sys.platform}_{multiarch}',
! 22: + f'_sysconfigdata_{sys.platform}',
! 23: )
! 24:
! 25:
CVSweb <webmaster@jp.NetBSD.org>