File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
Import-Module (Join-Path $PSScriptRoot " ../helpers/pester-extensions.psm1" )
9
9
Import-Module (Join-Path $PSScriptRoot " ../helpers/common-helpers.psm1" )
10
+ Import-Module (Join-Path $PSScriptRoot " ../builders/python-version.psm1" )
10
11
11
12
function Analyze-MissingModules ([string ] $buildOutputLocation ) {
12
13
$searchStringStart = " Failed to build these modules:"
@@ -59,7 +60,8 @@ Describe "Tests" {
59
60
}
60
61
61
62
It " Check if python configuration is correct" {
62
- " python ./sources/python-config-test.py $Version " | Should - ReturnZeroExitCode
63
+ $nativeVersion = Convert-Version - version $Version
64
+ " python ./sources/python-config-test.py $Version $nativeVersion " | Should - ReturnZeroExitCode
63
65
}
64
66
65
67
It " Check if shared libraries are linked correctly" {
Original file line number Diff line number Diff line change 1
1
import distutils .sysconfig
2
+ from distutils .version import StrictVersion
2
3
import sysconfig
3
4
import sys
4
5
import platform
7
8
# Define variables
8
9
os_type = platform .system ()
9
10
version = sys .argv [1 ]
11
+ nativeVersion = sys .argv [2 ]
10
12
11
13
lib_dir_path = sysconfig .get_config_var ('LIBDIR' )
12
14
ld_library_name = sysconfig .get_config_var ('LDLIBRARY' )
41
43
### Validate macOS
42
44
if os_type == 'Darwin' :
43
45
### Validate openssl links
44
- if version < "3.7.0" :
46
+ if StrictVersion ( nativeVersion ) < StrictVersion ( "3.7.0" ) :
45
47
expected_ldflags = '-L/usr/local/opt/[email protected] /lib'
46
48
ldflags = sysconfig .get_config_var ('LDFLAGS' )
47
49
You can’t perform that action at this time.
0 commit comments