This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit fad1f83b42dc658c39bb27318ed87b80a8c1ecfd Author: Daniel Gruno <[email protected]> AuthorDate: Wed Aug 26 13:13:01 2020 +0200 switch to 3.4 demand, warn if <= 3.7 because of ui backend reqs. --- tools/setup.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/setup.py b/tools/setup.py index 3b3a9d2..5ed07bb 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -22,10 +22,21 @@ import shutil import sys import yaml +# Needs 3.4 or higher to work +if sys.version_info <= (3, 3): + print("This script requires Python 3.4 or higher in order to work!") + sys.exit(-1) +# Backend needs 3.8 or higher, warn if not found. if sys.version_info <= (3, 7): - print("This script requires Python 3.8 or higher") - sys.exit(-1) + print( + "Warning: Pony Mail Foal requires Python 3.8 or higher for backend operations." + ) + print( + "You will be able to run the setup using this version (%u.%u), but will need >=3.8" + % (sys.version_info.major, sys.version_info.minor) + ) + print("for operating the UI backend server.") hostname = "" @@ -163,6 +174,7 @@ parser.add_argument( ) args = parser.parse_args() +print("") print("Welcome to the Pony Mail setup script!") print("Let's start by determining some settings...") print("")
