Merge pull request #66 from dmitry-shibanov/v-dmshib/fix-StrictVersion

Replace StrictVersion to LooseVersion
This commit is contained in:
MaksimZhukov 2020-11-25 19:14:54 +03:00 committed by GitHub
commit 650a155a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import distutils.sysconfig
from distutils.version import StrictVersion
from distutils.version import LooseVersion
import sysconfig
import sys
import platform
@ -43,7 +43,7 @@ else:
### Validate macOS
if os_type == 'Darwin':
### Validate openssl links
if StrictVersion(nativeVersion) < StrictVersion("3.7.0"):
if LooseVersion(nativeVersion) < LooseVersion("3.7.0"):
expected_ldflags = '-L/usr/local/opt/openssl@1.1/lib'
ldflags = sysconfig.get_config_var('LDFLAGS')