File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ class macOSPythonBuilder : NixPythonBuilder {
68
68
# ## and then add the appropriate paths for the header and library files to configure command.
69
69
# ## Link to documentation (https://cpython-devguide.readthedocs.io/setup/#build-dependencies)
70
70
if ($this.Version -lt " 3.7.0" ) {
71
- $env: LDFLAGS = " -L/usr/local/opt/openssl@1.1 /lib -L/usr/local/opt/zlib/lib"
72
- $env: CFLAGS = " -I/usr/local/opt/openssl@1.1 /include -I/usr/local/opt/zlib/include"
71
+ $env: LDFLAGS = " -L/usr/local/opt/openssl@3 /lib -L/usr/local/opt/zlib/lib"
72
+ $env: CFLAGS = " -I/usr/local/opt/openssl@3 /include -I/usr/local/opt/zlib/include"
73
73
} else {
74
- $configureString += " --with-openssl=/usr/local/opt/openssl@1.1 "
74
+ $configureString += " --with-openssl=/usr/local/opt/openssl@3 "
75
75
76
76
# 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
77
77
# with the error: zipimport.ZipImportError: can't decompress data; zlib not available
Original file line number Diff line number Diff line change 54
54
if os_type == 'Darwin' :
55
55
### Validate openssl links
56
56
if version_major == 3 and version_minor < 7 :
57
- expected_ldflags = '-L/usr/local/opt/openssl@1.1 /lib'
57
+ expected_ldflags = '-L/usr/local/opt/openssl@3 /lib'
58
58
ldflags = sysconfig .get_config_var ('LDFLAGS' )
59
59
60
60
if not expected_ldflags in ldflags :
61
61
print ('Invalid ldflags: %s; Expected: %s' % (ldflags , expected_ldflags ))
62
62
exit (1 )
63
63
else :
64
- expected_openssl_includes = '-I/usr/local/opt/openssl@1.1 /include'
65
- expected_openssl_ldflags = '-L/usr/local/opt/openssl@1.1 /lib'
64
+ expected_openssl_includes = '-I/usr/local/opt/openssl@3 /include'
65
+ expected_openssl_ldflags = '-L/usr/local/opt/openssl@3 /lib'
66
66
67
67
openssl_includes = sysconfig .get_config_var ('OPENSSL_INCLUDES' )
68
68
openssl_ldflags = sysconfig .get_config_var ('OPENSSL_LDFLAGS' )
You can’t perform that action at this time.
0 commit comments