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 77
88Import-Module (Join-Path $PSScriptRoot " ../helpers/pester-extensions.psm1" )
99Import-Module (Join-Path $PSScriptRoot " ../helpers/common-helpers.psm1" )
10+ Import-Module (Join-Path $PSScriptRoot " ../builders/python-version.psm1" )
1011
1112function Analyze-MissingModules ([string ] $buildOutputLocation ) {
1213 $searchStringStart = " Failed to build these modules:"
@@ -59,7 +60,8 @@ Describe "Tests" {
5960 }
6061
6162 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
6365 }
6466
6567 It " Check if shared libraries are linked correctly" {
Original file line number Diff line number Diff line change 11import distutils .sysconfig
2+ from distutils .version import StrictVersion
23import sysconfig
34import sys
45import platform
78# Define variables
89os_type = platform .system ()
910version = sys .argv [1 ]
11+ nativeVersion = sys .argv [2 ]
1012
1113lib_dir_path = sysconfig .get_config_var ('LIBDIR' )
1214ld_library_name = sysconfig .get_config_var ('LDLIBRARY' )
4143### Validate macOS
4244if os_type == 'Darwin' :
4345 ### Validate openssl links
44- if version < "3.7.0" :
46+ if StrictVersion ( nativeVersion ) < StrictVersion ( "3.7.0" ) :
4547 expected_ldflags = '-L/usr/local/opt/openssl@1.1/lib'
4648 ldflags = sysconfig .get_config_var ('LDFLAGS' )
4749
You can’t perform that action at this time.
0 commit comments