Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace StrictVersion to LooseVersion #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/sources/python-config-test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import distutils.sysconfig
from distutils.version import StrictVersion
from distutils.version import LooseVersion
import sysconfig
import sys
import platform
Expand Down Expand Up @@ -43,7 +43,7 @@
### 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/[email protected]/lib'
ldflags = sysconfig.get_config_var('LDFLAGS')

Expand Down