Skip to content

Commit

Permalink
Add fixes for 3.7.17 (actions#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov authored Jun 8, 2023
1 parent 7693cef commit ab4e944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builders/macos-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
5 changes: 5 additions & 0 deletions tests/sources/python-modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ab4e944

Please sign in to comment.