From ab4e944c0f749c2e10693d4ac76edd14ae62af6b Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 8 Jun 2023 15:24:29 +0200 Subject: [PATCH] Add fixes for 3.7.17 (#233) --- builders/macos-python-builder.psm1 | 2 +- tests/sources/python-modules.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/builders/macos-python-builder.psm1 b/builders/macos-python-builder.psm1 index cdefd9fa..35f15751 100644 --- a/builders/macos-python-builder.psm1 +++ b/builders/macos-python-builder.psm1 @@ -67,7 +67,7 @@ class macOSPythonBuilder : NixPythonBuilder { # For Python 3.7.2 and 3.7.3 we need to provide PATH for zlib to pack it properly. Otherwise the build will fail # with the error: zipimport.ZipImportError: can't decompress data; zlib not available - if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3") { + if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3" -or $this.Version -eq "3.7.17") { $env:LDFLAGS = "-L/usr/local/opt/zlib/lib" $env:CFLAGS = "-I/usr/local/opt/zlib/include" } diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index d6574051..152d0d61 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -248,6 +248,11 @@ def replace(lst, old, new): 'dataclasses', ]) +if (sys.version_info.major, sys.version_info.minor, sys.version_info.micro) == (3, 7, 17): + standard_library.remove('bz2') + standard_library.remove('curses') + standard_library.remove('readline') + # 'macpath' module has been removed from Python 3.8 if sys.version_info > (3, 7): standard_library.remove('macpath')