Skip to content

(fix): fix checking python system version#60

Open
Sukhacoder02 wants to merge 1 commit intosk364:masterfrom
Sukhacoder02:fix/version-check
Open

(fix): fix checking python system version#60
Sukhacoder02 wants to merge 1 commit intosk364:masterfrom
Sukhacoder02:fix/version-check

Conversation

@Sukhacoder02
Copy link

@Sukhacoder02 Sukhacoder02 commented Jul 11, 2023

This PR fixes the This version is not supported issue while building the package.

Actually, sys.version return something like 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)]
and comparing the above with a string '3.8' always returns false if the version if greater than 3.8.
Whereas, sys.version_info returns a tuple similar to sys.version_info(major=3, minor=11, micro=4, releaselevel='final', serial=0) which makes sense comparing it to something like (3,8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant