Add a check for the python version in the scripts

This commit is contained in:
mathieui 2014-11-30 16:29:50 +01:00
parent 43004a8570
commit a208dc87ee
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
python3 -c 'import sys;(print("Python 3.4 or newer is required") and exit(1)) if sys.version_info < (3, 4) else exit(0)' || exit 1
poezio_dir=$(dirname "$0") poezio_dir=$(dirname "$0")
VENV="poezio-venv" VENV="poezio-venv"

View file

@ -6,6 +6,7 @@
# Use launch.sh to start poezio directly from here # Use launch.sh to start poezio directly from here
python3 -c 'import sys;(print("Python 3.4 or newer is required") and exit(1)) if sys.version_info < (3, 4) else exit(0)' || exit 1
cd "$(dirname "$0")" cd "$(dirname "$0")"
VENV="poezio-venv" VENV="poezio-venv"
VENV_COMMAND="pyvenv" VENV_COMMAND="pyvenv"