codechef-cli
codechef-cli copied to clipboard
(fix): fix checking python system version
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).