File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ class macOSPythonBuilder : NixPythonBuilder {
64
64
$env: CFLAGS = " -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/zlib/include"
65
65
} else {
66
66
$configureString += " --with-openssl=/usr/local/opt/openssl@1.1"
67
+
68
+ # 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
69
+ # 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" ) {
71
+ $env: LDFLAGS = " -L/usr/local/opt/zlib/lib"
72
+ $env: CFLAGS = " -I/usr/local/opt/zlib/include"
73
+ }
74
+
67
75
if ($this.Version -gt " 3.7.12" ) {
68
76
$configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
69
77
}
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ Describe "Tests" {
93
93
It " Validate Pyinstaller" {
94
94
" pip install pyinstaller" | Should - ReturnZeroExitCode
95
95
" pyinstaller --onefile ./sources/simple-test.py" | Should - ReturnZeroExitCode
96
- " ./dist/simple-test" | Should - ReturnZeroExitCode
96
+ $distPath = [IO.Path ]::Combine($pwd , " dist" , " simple-test" )
97
+ " $distPath " | Should - ReturnZeroExitCode
97
98
}
98
99
}
99
100
You can’t perform that action at this time.
0 commit comments