Update the required Python version to 2.7.3
This commit is contained in:
parent
b6518951b8
commit
1a6962d34c
|
@ -6,7 +6,7 @@ import sys
|
||||||
#them. The logging module was introduced in Python 2.3
|
#them. The logging module was introduced in Python 2.3
|
||||||
if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0:
|
if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0:
|
||||||
sys.stdout.write('Python version: ' + sys.version)
|
sys.stdout.write('Python version: ' + sys.version)
|
||||||
sys.stdout.write('PyBitmessage requires Python 2.7.5 or greater (but not Python 3)')
|
sys.stdout.write('PyBitmessage requires Python 2.7.3 or greater (but not Python 3)')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
#We can now use logging so set up a simple configuration
|
#We can now use logging so set up a simple configuration
|
||||||
|
@ -144,7 +144,7 @@ def check_openssl():
|
||||||
#TODO: The minimum versions of pythondialog and dialog need to be determined
|
#TODO: The minimum versions of pythondialog and dialog need to be determined
|
||||||
def check_curses():
|
def check_curses():
|
||||||
if sys.hexversion < 0x20600F0:
|
if sys.hexversion < 0x20600F0:
|
||||||
logger.error('The curses interface requires Python 2.6 or later, the pythondialog package and the dialog utility.')
|
logger.error('The curses interface requires the pythondialog package and the dialog utility.')
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
import curses
|
import curses
|
||||||
|
@ -188,14 +188,14 @@ def check_dependencies(verbose = False, optional = False):
|
||||||
|
|
||||||
has_all_dependencies = True
|
has_all_dependencies = True
|
||||||
|
|
||||||
#Python 2.7.5 is the required minimum. Python 3+ is not supported, but it is
|
#Python 2.7.3 is the required minimum. Python 3+ is not supported, but it is
|
||||||
#still useful to provide information about our other requirements.
|
#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 < 0x20705F0:
|
if sys.hexversion < 0x20703F0:
|
||||||
logger.error('PyBitmessage requires Python 2.7.5 or greater (but not Python 3+)')
|
logger.error('PyBitmessage requires Python 2.7.3 or greater (but not Python 3+)')
|
||||||
has_all_dependencies = False
|
has_all_dependencies = False
|
||||||
if sys.hexversion >= 0x3000000:
|
if sys.hexversion >= 0x3000000:
|
||||||
logger.error('PyBitmessage does not support Python 3+. Python 2.7.5 or greater is required.')
|
logger.error('PyBitmessage does not support Python 3+. Python 2.7.3 or greater is required.')
|
||||||
has_all_dependencies = False
|
has_all_dependencies = False
|
||||||
|
|
||||||
check_functions = [check_hashlib, check_sqlite, check_openssl]
|
check_functions = [check_hashlib, check_sqlite, check_openssl]
|
||||||
|
|
Reference in New Issue
Block a user