From 9c64db0d2a0f4614ab45ce9208d0a1e7253113b0 Mon Sep 17 00:00:00 2001
From: Kashiko Koibumi <kashiko@tuta.io>
Date: Mon, 27 May 2024 23:01:19 +0900
Subject: [PATCH] remove restriction for Python3 and add startup script for
 Python3

---
 src/depends.py | 9 ++-------
 start3.sh      | 3 +++
 2 files changed, 5 insertions(+), 7 deletions(-)
 create mode 100755 start3.sh

diff --git a/src/depends.py b/src/depends.py
index a2b0d6c6..0afae7af 100755
--- a/src/depends.py
+++ b/src/depends.py
@@ -450,14 +450,9 @@ def check_dependencies(verbose=False, optional=False):
     logger.info('Python version: %s', sys.version)
     if sys.hexversion < 0x20704F0:
         logger.error(
-            'PyBitmessage requires Python 2.7.4 or greater'
-            ' (but not Python 3+)')
+            'PyBitmessage requires Python 2.7.4 or greater.'
+            ' Python 2.7.18 is recommended.')
         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
     # if sys.hexversion >= 0x3000000 and sys.hexversion < 0x3060000:
diff --git a/start3.sh b/start3.sh
new file mode 100755
index 00000000..bf571e12
--- /dev/null
+++ b/start3.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+python3 pybitmessage/bitmessagemain.py "$@"