mirror of
https://github.com/actions/python-versions.git
synced 2025-04-06 23:39:38 +00:00
Add fixes for 3.7.17 (#233)
Some checks failed
CodeQL analysis / CodeQL analysis (push) Has been cancelled
Some checks failed
CodeQL analysis / CodeQL analysis (push) Has been cancelled
This commit is contained in:
@ -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
|
# 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
|
# 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:LDFLAGS = "-L/usr/local/opt/zlib/lib"
|
||||||
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,11 @@ if sys.version_info >= (3, 7):
|
|||||||
'dataclasses',
|
'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
|
# 'macpath' module has been removed from Python 3.8
|
||||||
if sys.version_info > (3, 7):
|
if sys.version_info > (3, 7):
|
||||||
standard_library.remove('macpath')
|
standard_library.remove('macpath')
|
||||||
|
Reference in New Issue
Block a user