Skip to content
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

Fixed version check from working in inverse, as it is: !(x < 3.6) #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JkktBkkt
Copy link

Current version was:
if not sys.version_info < (3, 6) -> exit
let's test this:
Ex. 1
sys.version_info = (3, 5)
sys.version_info < (3, 6) ? true
not sys.version_info < (3, 6) ? false -> try continuing the installation as normal
Ex. 2
sys.version_info = (3, 10)
sys.version_info < (3, 6) ? false
not sys.version_info < (3, 6) ? true -> exit, error message "Python 3.6 or newer is required"
If 3.6 or newer is required, the 'not' in the check is breaking it. Admittedly, most users probably stay on the release version. Still, this shouldn't be so obviously and easily fixable imo.

… then not'ing the result of the check.

Current version was:
if not sys.version_info < (3, 6) -> exit
let's test this:
Ex. 1
	sys.version_info = (3, 5)
	sys.version_info < (3, 6) ? true
	not sys.version_info < (3, 6) ? false -> try continuing the installation as normal
Ex. 2
	sys.version_info = (3, 10)
	sys.version_info < (3, 6) ? false
	not sys.version_info < (3, 6) ? true -> exit, error message "Python 3.6 or newer is required"
If 3.6 or newer is required, the 'not' in the check is breaking it.
Admittedly, most users probably stay on the release version. Still, this shouldn't be so obviously and easily fixable imo.
@ossilator
Copy link

fixes #77

@dlenski
Copy link
Owner

dlenski commented Jun 7, 2024

Thanks, fixed this in e539415, but also see d1907a0.

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.

3 participants