Skip to content

Commit ab4e944

Browse files
Add fixes for 3.7.17 (actions#233)
1 parent 7693cef commit ab4e944

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

builders/macos-python-builder.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class macOSPythonBuilder : NixPythonBuilder {
6767

6868
# 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
6969
# with the error: zipimport.ZipImportError: can't decompress data; zlib not available
70-
if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3") {
70+
if ($this.Version -eq "3.7.2" -or $this.Version -eq "3.7.3" -or $this.Version -eq "3.7.17") {
7171
$env:LDFLAGS = "-L/usr/local/opt/zlib/lib"
7272
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
7373
}

tests/sources/python-modules.py

+5
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ def replace(lst, old, new):
248248
'dataclasses',
249249
])
250250

251+
if (sys.version_info.major, sys.version_info.minor, sys.version_info.micro) == (3, 7, 17):
252+
standard_library.remove('bz2')
253+
standard_library.remove('curses')
254+
standard_library.remove('readline')
255+
251256
# 'macpath' module has been removed from Python 3.8
252257
if sys.version_info > (3, 7):
253258
standard_library.remove('macpath')

0 commit comments

Comments
 (0)