remove restriction for Python3 and add startup script for Python3

This commit is contained in:
Kashiko Koibumi 2024-05-27 23:01:19 +09:00
parent 2a0d2d3a10
commit 9c64db0d2a
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4
2 changed files with 5 additions and 7 deletions

View File

@ -450,14 +450,9 @@ def check_dependencies(verbose=False, optional=False):
logger.info('Python version: %s', sys.version) logger.info('Python version: %s', sys.version)
if sys.hexversion < 0x20704F0: if sys.hexversion < 0x20704F0:
logger.error( logger.error(
'PyBitmessage requires Python 2.7.4 or greater' 'PyBitmessage requires Python 2.7.4 or greater.'
' (but not Python 3+)') ' Python 2.7.18 is recommended.')
has_all_dependencies = False has_all_dependencies = False
if six.PY3:
logger.error(
'PyBitmessage does not support Python 3+. Python 2.7.4'
' or greater is required. Python 2.7.18 is recommended.')
sys.exit()
# FIXME: This needs to be uncommented when more of the code is python3 compatible # FIXME: This needs to be uncommented when more of the code is python3 compatible
# if sys.hexversion >= 0x3000000 and sys.hexversion < 0x3060000: # if sys.hexversion >= 0x3000000 and sys.hexversion < 0x3060000:

3
start3.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
python3 pybitmessage/bitmessagemain.py "$@"