Add fixes for 3.7.17 (#233)
Some checks failed
CodeQL analysis / CodeQL analysis (push) Has been cancelled

This commit is contained in:
Dmitry Shibanov 2023-06-08 15:24:29 +02:00 committed by GitHub
parent 7693cef346
commit ab4e944c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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"
}

View File

@ -248,6 +248,11 @@ if sys.version_info >= (3, 7):
'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')