pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang python39: updated to 3.9.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/042d23e67198
branches:  trunk
changeset: 443192:042d23e67198
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Dec 08 14:30:40 2020 +0000

description:
python39: updated to 3.9.1

Python 3.9.1 final

Core and Builtins

bpo-42576: types.GenericAlias will now raise a TypeError when attempting to initialize with a keyword argument. Previously, this would cause the interpreter to crash if the interpreter was compiled 
with debug symbols. This does not affect interpreters compiled for release. Patch by Ken Jin.

Library

bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed. Replace the special purpose getallmatchingheaders with generic get_all method and add relevant tests.
bpo-17735: inspect.findsource() now raises OSError instead of IndexError when co_lineno of a code object is greater than the file length. This can happen, for example, when a file is edited after it 
was imported.
bpo-42116: Fix handling of trailing comments by inspect.getsource().
bpo-42487: ChainMap.__iter__ no longer calls __getitem__ on underlying maps
bpo-42482: TracebackException no longer holds a reference to the exception’s traceback object. Consequently, instances of TracebackException for equivalent but non-equal exceptions now compare as 
equal.
bpo-42406: We fixed an issue in pickle.whichmodule in which importing multiprocessing could change the how pickle identifies which module an object belongs to, potentially breaking the unpickling of 
those objects.
bpo-34215: Clarify the error message for asyncio.IncompleteReadError when expected is None.
bpo-12800: Extracting a symlink from a tarball should succeed and overwrite the symlink if it already exists. The fix is to remove the existing file or symlink before extraction. Based on patch by 
Chris AtLee, Jeffrey Kintscher, and Senthil Kumaran.

Tests

bpo-41473: Reenable test_gdb on gdb 9.2 and newer: https://bugzilla.redhat.com/show_bug.cgi?id=1866884 bug is fixed in gdb 10.1.
bpo-42553: Fix test_asyncio.test_call_later() race condition: don’t measure asyncio performance in the call_later() unit test. The test failed randomly on the CI.

macOS

bpo-41116: If no explicit macOS SDK was specified, setup.py should check for Tcl and TK frameworks in /Library/Frameworks; the previous commit inadvertently broke that test.
bpo-42504: Fix build on macOS Big Sur when MACOSX_DEPLOYMENT_TARGET=11

IDLE

bpo-42508: Keep IDLE running on macOS. Remove obsolete workaround that prevented running files with shortcuts when using new universal2 installers built on macOS 11.

diffstat:

 lang/py39-html-docs/Makefile                                        |     4 +-
 lang/py39-html-docs/distinfo                                        |    10 +-
 lang/python39/Makefile                                              |    12 +-
 lang/python39/PLIST                                                 |     6 +-
 lang/python39/dist.mk                                               |     4 +-
 lang/python39/distinfo                                              |    36 +-
 lang/python39/patches/patch-Lib___osx__support.py                   |    81 -
 lang/python39/patches/patch-Lib_ctypes_macholib_dyld.py             |    35 -
 lang/python39/patches/patch-Lib_ctypes_test_test__macholib.py       |    36 -
 lang/python39/patches/patch-Lib_distutils_tests_test__build__ext.py |    13 -
 lang/python39/patches/patch-Lib_test_test__bytes.py                 |    15 -
 lang/python39/patches/patch-Lib_test_test__platform.py              |    16 -
 lang/python39/patches/patch-Lib_test_test__unicode.py               |    21 -
 lang/python39/patches/patch-Mac_BuildScript_build-installer.py      |    69 -
 lang/python39/patches/patch-Mac_Tools_pythonw.c                     |    44 -
 lang/python39/patches/patch-Modules___ctypes_callbacks.c            |    76 -
 lang/python39/patches/patch-Modules___ctypes_callproc.c             |   190 -
 lang/python39/patches/patch-Modules___ctypes_ctypes.h               |    22 -
 lang/python39/patches/patch-Modules___ctypes_malloc__closure.c      |    37 -
 lang/python39/patches/patch-Modules___decimal_libmpdec_mpdecimal.h  |    16 -
 lang/python39/patches/patch-Modules_getpath.c                       |    19 -
 lang/python39/patches/patch-Modules_posixmodule.c                   |  1365 ----------
 lang/python39/patches/patch-Modules_timemodule.c                    |   322 --
 lang/python39/patches/patch-Python_bootstrap__hash.c                |    73 -
 lang/python39/patches/patch-Python_pytime.c                         |    73 -
 lang/python39/patches/patch-configure                               |   119 +-
 lang/python39/patches/patch-configure.ac                            |    82 -
 lang/python39/patches/patch-pyconfig.h.in                           |    16 +-
 lang/python39/patches/patch-setup.py                                |   170 +-
 29 files changed, 57 insertions(+), 2925 deletions(-)

diffs (truncated from 3280 to 300 lines):

diff -r 8115998f3629 -r 042d23e67198 lang/py39-html-docs/Makefile
--- a/lang/py39-html-docs/Makefile      Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/py39-html-docs/Makefile      Tue Dec 08 14:30:40 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/10/10 20:19:47 adam Exp $
+# $NetBSD: Makefile,v 1.2 2020/12/08 14:30:40 adam Exp $
 
-VERS=          3.9.0
+VERS=          3.9.1
 DISTNAME=      python-${VERS}-docs-html
 PKGNAME=       py39-html-docs-${VERS}
 CATEGORIES=    lang python
diff -r 8115998f3629 -r 042d23e67198 lang/py39-html-docs/distinfo
--- a/lang/py39-html-docs/distinfo      Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/py39-html-docs/distinfo      Tue Dec 08 14:30:40 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/10/10 20:19:47 adam Exp $
+$NetBSD: distinfo,v 1.2 2020/12/08 14:30:40 adam Exp $
 
-SHA1 (python-3.9.0-docs-html.tar.bz2) = 99704717879e3ee4040c2ac7b186b03a56577c8f
-RMD160 (python-3.9.0-docs-html.tar.bz2) = 3820fc22a919acdca355e56827ca5f87d90d0a70
-SHA512 (python-3.9.0-docs-html.tar.bz2) = d04957f4895ab8f6bef8467d8b5282e0b3e5c453e2168c25123ee7aefd7a3d6d8b918e9f455bbf82913370a00181b8c00998ec2ae67c763aeda237c5b3a42097
-Size (python-3.9.0-docs-html.tar.bz2) = 6771373 bytes
+SHA1 (python-3.9.1-docs-html.tar.bz2) = ab7f5ea13f67b0c7e639964d4be3a83a3c72b35a
+RMD160 (python-3.9.1-docs-html.tar.bz2) = 172b697e3dad6da7b183124b86b4ce08f1c00db6
+SHA512 (python-3.9.1-docs-html.tar.bz2) = aa87b27b895894281b923031af651d26627526f85e61fe09c88be081ff6471ae367364cea176b1e522e065c6ec98372504f769aa1d40382716004f90c3761d97
+Size (python-3.9.1-docs-html.tar.bz2) = 6806786 bytes
diff -r 8115998f3629 -r 042d23e67198 lang/python39/Makefile
--- a/lang/python39/Makefile    Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/python39/Makefile    Tue Dec 08 14:30:40 2020 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2020/12/07 13:14:39 nia Exp $
+# $NetBSD: Makefile,v 1.6 2020/12/08 14:30:40 adam Exp $
 
 .include "dist.mk"
 
 PKGNAME=       python39-${PY_DISTVERSION}
-PKGREVISION=   1
 CATEGORIES=    lang python
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -65,17 +64,10 @@
 .endif
 PLIST_SUBST+=  PY_PLATNAME=${PY_PLATNAME:Q}
 
-# ossaudiodev is only available on x86 for the following platforms
-PLIST_VARS+=   oss
-.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
-    (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD")
-PLIST.oss=     yes
-.endif
-
 # For Xcode 5 and up, we need to search the SDK path for headers, otherwise
 # certain modules will not be built.
 .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include)
-CFLAGS+=               -I${OSX_SDK_PATH:Q}/usr/include
+CFLAGS+=       -I${OSX_SDK_PATH:Q}/usr/include
 .endif
 
 PLIST_VARS+=   nis
diff -r 8115998f3629 -r 042d23e67198 lang/python39/PLIST
--- a/lang/python39/PLIST       Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/python39/PLIST       Tue Dec 08 14:30:40 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/10/10 20:19:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/12/08 14:30:40 adam Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 bin/python${PY_VER_SUFFIX}
@@ -1419,7 +1419,6 @@
 lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/__init__.py
 lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/__init__.pyc
 lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/__init__.pyo
-lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-20.2.1-py2.py3-none-any.whl
 lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-20.2.3-py2.py3-none-any.whl
 lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/setuptools-49.2.1-py3-none-any.whl
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.py
@@ -3281,6 +3280,9 @@
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures.py
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures.pyc
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures.pyo
+lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures2.py
+lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures2.pyc
+lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_futures2.pyo
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_locks.py
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_locks.pyc
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_locks.pyo
diff -r 8115998f3629 -r 042d23e67198 lang/python39/dist.mk
--- a/lang/python39/dist.mk     Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/python39/dist.mk     Tue Dec 08 14:30:40 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: dist.mk,v 1.1 2020/10/10 20:19:47 adam Exp $
+# $NetBSD: dist.mk,v 1.2 2020/12/08 14:30:40 adam Exp $
 
-PY_DISTVERSION=        3.9.0
+PY_DISTVERSION=        3.9.1
 DISTNAME=      Python-${PY_DISTVERSION}
 EXTRACT_SUFX=  .tar.xz
 DISTINFO_FILE= ${.CURDIR}/../../lang/python39/distinfo
diff -r 8115998f3629 -r 042d23e67198 lang/python39/distinfo
--- a/lang/python39/distinfo    Tue Dec 08 13:02:06 2020 +0000
+++ b/lang/python39/distinfo    Tue Dec 08 14:30:40 2020 +0000
@@ -1,42 +1,22 @@
-$NetBSD: distinfo,v 1.4 2020/11/19 16:29:42 bsiegert Exp $
+$NetBSD: distinfo,v 1.5 2020/12/08 14:30:40 adam Exp $
 
-SHA1 (Python-3.9.0.tar.xz) = ff1fc8c37d5d4b09ec3bf0d84f3e5b97745c6704
-RMD160 (Python-3.9.0.tar.xz) = 822fd1ea11f3ca303a08317f6db61f2a1e03e5ef
-SHA512 (Python-3.9.0.tar.xz) = b141039c9701a8cb0d15cd11a279153077524af4d0599e7d2c7279d4c18d05fda06b33ef82342d875de996c7117b7dc6eb154dc3669d38a1efa99801aeec6c5e
-Size (Python-3.9.0.tar.xz) = 18866140 bytes
-SHA1 (patch-Lib___osx__support.py) = 4ccccb81381cd7bf4a8bbc3e376d1234cf2266d5
-SHA1 (patch-Lib_ctypes_macholib_dyld.py) = d7f3e0c63d6926db253fbe923dd97995478d528c
-SHA1 (patch-Lib_ctypes_test_test__macholib.py) = bd887357759975b7a497c4079bc730e9c578ceed
+SHA1 (Python-3.9.1.tar.xz) = 77f4105846f6740297e50d7535a42c02d6b8e7db
+RMD160 (Python-3.9.1.tar.xz) = 59e056f957252a03c83ce892ac0ef85a274fce58
+SHA512 (Python-3.9.1.tar.xz) = b90029d6825751685983e9dcf0e0ec9e46f18e6c7d37b0dd7a245a94316f8c0090308ad7c2b2b49ed2514b0b909177231dd5bcad03031bf4624e37136fcf8019
+Size (Python-3.9.1.tar.xz) = 18897104 bytes
 SHA1 (patch-Lib_ctypes_util.py) = 032cc99ebad93ddddfd89073c60424a952e3faa3
 SHA1 (patch-Lib_distutils_command_install.py) = 6fc6f5d918b7581fc62cd0fe55857ee932c3a341
 SHA1 (patch-Lib_distutils_sysconfig.py) = 6822eafb4dfded86d7f7353831816aeb8119e6cf
-SHA1 (patch-Lib_distutils_tests_test__build__ext.py) = 145a0f01b3602c582e033081a35d4d86245575f9
 SHA1 (patch-Lib_distutils_unixccompiler.py) = 2e65a8dd5dd3fe25957206c062106fa7a6fc4e69
 SHA1 (patch-Lib_lib2to3_pgen2_driver.py) = 5d6dab14197f27363394ff1aeee22a8ced8026d2
 SHA1 (patch-Lib_sysconfig.py) = a4f009ed73ebbd9d9c4bf7e12b7981182ed8fd7c
-SHA1 (patch-Lib_test_test__bytes.py) = 72559fdcb09f2c0b0c7b62649c249775d359d72e
-SHA1 (patch-Lib_test_test__platform.py) = 36311733729ac95159b3177dc0c16e6f4aa2f2b9
-SHA1 (patch-Lib_test_test__unicode.py) = 14fe4dd1011dbe262459f735a643774e0d38c99e
-SHA1 (patch-Mac_BuildScript_build-installer.py) = 24641c70facfded736ccc2be069d0e2ae63f63fd
-SHA1 (patch-Mac_Tools_pythonw.c) = fe128efe942853f0825c1a1fa17842201716dfdf
 SHA1 (patch-Makefile.pre.in) = d42f9f5bca1dd663f64122dc95b49111452fe6e8
-SHA1 (patch-Modules___ctypes_callbacks.c) = 95750090d396a647fc12f7f7fad8c591ca4dcdec
-SHA1 (patch-Modules___ctypes_callproc.c) = 86f27c466a67ebf72d863febece33aa8b1f9f719
-SHA1 (patch-Modules___ctypes_ctypes.h) = 641c0af4d550c9140549ce2f2df6239c2c954a06
-SHA1 (patch-Modules___ctypes_malloc__closure.c) = 7e8f491ce66acb6d07e8830ee881edbf0aaac538
-SHA1 (patch-Modules___decimal_libmpdec_mpdecimal.h) = 8d302abacc5737fe7620d4738fff6c5c3ed387c7
 SHA1 (patch-Modules___zoneinfo.c) = b1df24fe935cd357670a6d9f41245ab04f2015e8
-SHA1 (patch-Modules_getpath.c) = d7114d21d7d9c7167fad259b115cb02e4153c531
 SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567
 SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d
-SHA1 (patch-Modules_posixmodule.c) = c592ef4ebe650f672a15ff9887cbeed2ca73b666
 SHA1 (patch-Modules_socketmodule.c) = 02c447f980a08e2185df78d2f13373574f414304
 SHA1 (patch-Modules_socketmodule.h) = 61fe96a79d4ccf3e7768eb79dd7e29a50a85328b
-SHA1 (patch-Modules_timemodule.c) = 8c8e9e43b6d165c1a7df6142a6bcd430003ed165
-SHA1 (patch-Python_bootstrap__hash.c) = cbc2839675182a344591ba672187b166f166499b
-SHA1 (patch-Python_pytime.c) = 1bb39b7060c1f337562208dc6611672eaf2f586b
 SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be
-SHA1 (patch-configure) = 371a65a2cb10fe7709d30a16358b48bc2e0a4aa6
-SHA1 (patch-configure.ac) = 4ce75ef922e015adf095cb481c829b11c0454efe
-SHA1 (patch-pyconfig.h.in) = 7c1c997c089f882fbd334b81c04a03dbaebb2c41
-SHA1 (patch-setup.py) = ab1a7cb97fb8718d21f07f8c896b7de660189c67
+SHA1 (patch-configure) = 2339ccb9041171f304286b2ee3cf711c7569a7a7
+SHA1 (patch-pyconfig.h.in) = 2f06af7358690b46eaff404226b898962b049a0e
+SHA1 (patch-setup.py) = 0ea2e4183f7c11ff893ca302aafe8bb9bea80d6c
diff -r 8115998f3629 -r 042d23e67198 lang/python39/patches/patch-Lib___osx__support.py
--- a/lang/python39/patches/patch-Lib___osx__support.py Tue Dec 08 13:02:06 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-$NetBSD: patch-Lib___osx__support.py,v 1.1 2020/11/12 10:58:21 sjmulder Exp $
-
-Support for macOS 11 and Apple Silicon (ARM). Backported from:
-https://github.com/python/cpython/pull/22855
-
---- Lib/_osx_support.py.orig   2020-10-05 15:07:58.000000000 +0000
-+++ Lib/_osx_support.py
-@@ -110,6 +110,26 @@ def _get_system_version():
- 
-     return _SYSTEM_VERSION
- 
-+_SYSTEM_VERSION_TUPLE = None
-+def _get_system_version_tuple():
-+    """
-+    Return the macOS system version as a tuple
-+
-+    The return value is safe to use to compare
-+    two version numbers.
-+    """
-+    global _SYSTEM_VERSION_TUPLE
-+    if _SYSTEM_VERSION_TUPLE is None:
-+        osx_version = _get_system_version()
-+        if osx_version:
-+            try:
-+                _SYSTEM_VERSION_TUPLE = tuple(int(i) for i in osx_version.split('.'))
-+            except ValueError:
-+                _SYSTEM_VERSION_TUPLE = ()
-+
-+    return _SYSTEM_VERSION_TUPLE
-+   
-+
- def _remove_original_values(_config_vars):
-     """Remove original unmodified values for testing"""
-     # This is needed for higher-level cross-platform tests of get_platform.
-@@ -132,14 +152,18 @@ def _supports_universal_builds():
-     # builds, in particular -isysroot and -arch arguments to the compiler. This
-     # is in support of allowing 10.4 universal builds to run on 10.3.x systems.
- 
--    osx_version = _get_system_version()
--    if osx_version:
--        try:
--            osx_version = tuple(int(i) for i in osx_version.split('.'))
--        except ValueError:
--            osx_version = ''
-+    osx_version = _get_system_version_tuple()
-     return bool(osx_version >= (10, 4)) if osx_version else False
- 
-+def _supports_arm64_builds():
-+    """Returns True if arm64 builds are supported on this system"""
-+    # There are two sets of systems supporting macOS/arm64 builds:
-+    # 1. macOS 11 and later, unconditionally
-+    # 2. macOS 10.15 with Xcode 12.2 or later
-+    # For now the second category is ignored.
-+    osx_version = _get_system_version_tuple()
-+    return osx_version >= (11, 0) if osx_version else False
-+
- 
- def _find_appropriate_compiler(_config_vars):
-     """Find appropriate C compiler for extension module builds"""
-@@ -331,6 +355,12 @@ def compiler_fixup(compiler_so, cc_args)
-             except ValueError:
-                 break
- 
-+    elif not _supports_arm64_builds():
-+        # Look for "-arch arm64" and drop that
-+        for idx in range(len(compiler_so)):
-+            if compiler_so[idx] == '-arch' and compiler_so[idx+1] == "arm64":
-+                del compiler_so[idx:idx+2]
-+
-     if 'ARCHFLAGS' in os.environ and not stripArch:
-         # User specified different -arch flags in the environ,
-         # see also distutils.sysconfig
-@@ -481,6 +511,8 @@ def get_platform_osx(_config_vars, osnam
- 
-             if len(archs) == 1:
-                 machine = archs[0]
-+            elif archs == ('arm64', 'x86_64'):
-+                machine = 'universal2'
-             elif archs == ('i386', 'ppc'):
-                 machine = 'fat'
-             elif archs == ('i386', 'x86_64'):
diff -r 8115998f3629 -r 042d23e67198 lang/python39/patches/patch-Lib_ctypes_macholib_dyld.py
--- a/lang/python39/patches/patch-Lib_ctypes_macholib_dyld.py   Tue Dec 08 13:02:06 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-Lib_ctypes_macholib_dyld.py,v 1.1 2020/11/12 10:58:21 sjmulder Exp $
-
-Support for macOS 11 and Apple Silicon (ARM). Backported from:
-https://github.com/python/cpython/pull/22855
-
---- Lib/ctypes/macholib/dyld.py.orig   2020-10-05 15:07:58.000000000 +0000
-+++ Lib/ctypes/macholib/dyld.py
-@@ -6,6 +6,11 @@ import os
- from ctypes.macholib.framework import framework_info
- from ctypes.macholib.dylib import dylib_info
- from itertools import *
-+try:
-+    from _ctypes import _dyld_shared_cache_contains_path
-+except ImportError:
-+    def _dyld_shared_cache_contains_path(*args):
-+        raise NotImplementedError
- 
- __all__ = [
-     'dyld_find', 'framework_find',
-@@ -122,8 +127,15 @@ def dyld_find(name, executable_path=None
-                 dyld_executable_path_search(name, executable_path),
-                 dyld_default_search(name, env),
-             ), env):
-+
-         if os.path.isfile(path):
-             return path
-+        try:
-+            if _dyld_shared_cache_contains_path(path):
-+                return path
-+        except NotImplementedError:
-+            pass
-+
-     raise ValueError("dylib %s could not be found" % (name,))
- 
- def framework_find(fn, executable_path=None, env=None):
diff -r 8115998f3629 -r 042d23e67198 lang/python39/patches/patch-Lib_ctypes_test_test__macholib.py
--- a/lang/python39/patches/patch-Lib_ctypes_test_test__macholib.py     Tue Dec 08 13:02:06 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-Lib_ctypes_test_test__macholib.py,v 1.1 2020/11/12 10:58:21 sjmulder Exp $
-
-Support for macOS 11 and Apple Silicon (ARM). Backported from:
-https://github.com/python/cpython/pull/22855
-
---- Lib/ctypes/test/test_macholib.py.orig      2020-10-05 15:07:58.000000000 +0000
-+++ Lib/ctypes/test/test_macholib.py
-@@ -45,19 +45,22 @@ def find_lib(name):
- class MachOTest(unittest.TestCase):
-     @unittest.skipUnless(sys.platform == "darwin", 'OSX-specific test')
-     def test_find(self):
--
--        self.assertEqual(find_lib('pthread'),
--                             '/usr/lib/libSystem.B.dylib')
-+        # On Mac OS 11, system dylibs are only present in the shared cache,
-+        # so symlinks like libpthread.dylib -> libSystem.B.dylib will not
-+        # be resolved by dyld_find
-+        self.assertIn(find_lib('pthread'),
-+                              ('/usr/lib/libSystem.B.dylib', '/usr/lib/libpthread.dylib'))


Home | Main Index | Thread Index | Old Index