Skip to content

Commit aa89155

Browse files
author
Dmitry Shibanov
committed
add new openssl
1 parent 57bf4da commit aa89155

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

builders/macos-python-builder.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ class macOSPythonBuilder : NixPythonBuilder {
3939
### Solution is to install these libraries from a third-party package manager,
4040
### and then add the appropriate paths for the header and library files to configure command.
4141
### Link to documentation (https://cpython-devguide.readthedocs.io/setup/#build-dependencies)
42+
Write-Host "openssl path: $(brew --prefix openssl)"
4243
if ($this.Version -lt "3.7.0") {
4344
$env:LDFLAGS = "-L$(brew --prefix openssl)/lib"
4445
$env:CFLAGS = "-I$(brew --prefix openssl)/include"
4546
} else {
46-
$configureString += " --with-openssl=/usr/local/opt/openssl"
47+
$configureString += " --with-openssl=/usr/local/opt/openssl@1.1"
4748
}
4849

4950
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*

tests/python-tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Describe "Tests" {
4848
}
4949
}
5050

51+
It "Run pip" {
52+
"pip install requests" | Should -ReturnZeroExitCode
53+
"pip uninstall requests" | Should -ReturnZeroExitCode
54+
}
55+
5156
if (IsNixPlatform $Platform) {
5257

5358
It "Check for failed modules in build_output" {

tests/sources/python-config-test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
print('Invalid ldflags: %s; Expected: %s' % (ldflags, expected_ldflags))
5252
exit(1)
5353
else:
54-
expected_openssl_includes = '-I/usr/local/opt/openssl/include'
55-
expected_openssl_ldflags ='-L/usr/local/opt/openssl/lib'
54+
expected_openssl_includes = '-I/usr/local/opt/openssl@1.1/include'
55+
expected_openssl_ldflags ='-L/usr/local/opt/openssl@1.1/lib'
5656

5757
openssl_includes = sysconfig.get_config_var('OPENSSL_INCLUDES')
5858
openssl_ldflags = sysconfig.get_config_var('OPENSSL_LDFLAGS')

tests/sources/python-modules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
'sre_constants',
140140
'sre_parse',
141141
'ssl',
142+
'_ssl',
142143
'stat',
143144
'string',
144145
'stringprep',

0 commit comments

Comments
 (0)