From 05b15f6f4f8664e9ee5bc9515c524c15929bbfac Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 27 Mar 2016 15:12:40 +0200 Subject: [PATCH] common/hooks: look for pycompile_version to identify python version. Also prepary python 3.5 --- common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index cdd608f4b4..b928ec3a39 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -9,8 +9,10 @@ hook() { pyver=2.7;; python3.4-*) pyver=3.4;; + python3.5-*) + pyver=3.5;; *) - for i in $python_versions; do + for i in $pycompile_version $python_versions; do if [ "$pyver" ]; then warn=1 break;