Minimum supported python is 2.7.4. Changed the check and log msg.

This commit is contained in:
Dmitri Bogomolov 2018-05-24 11:53:07 +03:00
parent 953ea4e950
commit 4eb3a00625
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -10,7 +10,7 @@ import sys
if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0: if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0:
sys.exit( sys.exit(
'Python version: %s\n' 'Python version: %s\n'
'PyBitmessage requires Python 2.7.3 or greater (but not Python 3)' 'PyBitmessage requires Python 2.7.4 or greater (but not Python 3)'
% sys.version % sys.version
) )
@ -433,18 +433,19 @@ def check_dependencies(verbose=False, optional=False):
has_all_dependencies = True has_all_dependencies = True
# Python 2.7.3 is the required minimum. Python 3+ is not supported, # Python 2.7.4 is the required minimum.
# but it is still useful to provide information about our other # (https://bitmessage.org/forum/index.php?topic=4081.0)
# requirements. # Python 3+ is not supported, but it is still useful to provide
# information about our other requirements.
logger.info('Python version: %s', sys.version) logger.info('Python version: %s', sys.version)
if sys.hexversion < 0x20703F0: if sys.hexversion < 0x20704F0:
logger.error( logger.error(
'PyBitmessage requires Python 2.7.3 or greater' 'PyBitmessage requires Python 2.7.4 or greater'
' (but not Python 3+)') ' (but not Python 3+)')
has_all_dependencies = False has_all_dependencies = False
if sys.hexversion >= 0x3000000: if sys.hexversion >= 0x3000000:
logger.error( logger.error(
'PyBitmessage does not support Python 3+. Python 2.7.3' 'PyBitmessage does not support Python 3+. Python 2.7.4'
' or greater is required.') ' or greater is required.')
has_all_dependencies = False has_all_dependencies = False