You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Correct setup.py version checking
This commit is contained in:
4
setup.py
4
setup.py
@@ -9,8 +9,8 @@ if not ((2, 6) <= SYS_VERSION <= (3, 7)) or ((3, 0) <= SYS_VERSION <= (3, 1)):
|
|||||||
if ((2, 4) <= SYS_VERSION <= (2, 7)):
|
if ((2, 4) <= SYS_VERSION <= (2, 7)):
|
||||||
mess += ("\nFor your Python, version %s, use the python-2.4 code/branch." %
|
mess += ("\nFor your Python, version %s, use the python-2.4 code/branch." %
|
||||||
sys.version[0:3])
|
sys.version[0:3])
|
||||||
elif SYS_VERSION < (2, 4) or ((3, 0) <= SYS_VERSION <= (3, 2)):
|
elif SYS_VERSION < (2, 4) or ((3, 0) <= SYS_VERSION <= (3, 1)):
|
||||||
mess += ("\nThis package is not supported before Python 2.4. Your Python version is %s."
|
mess += ("\nThis package is not supported for Python version %s."
|
||||||
% sys.version[0:3])
|
% sys.version[0:3])
|
||||||
print(mess)
|
print(mess)
|
||||||
raise Exception(mess)
|
raise Exception(mess)
|
||||||
|
Reference in New Issue
Block a user