common/hooks: look for pycompile_version to identify python version.

Also prepary python 3.5
This commit is contained in:
Enno Boland 2016-03-27 15:12:40 +02:00
parent a5cbb04f2e
commit 05b15f6f4f
1 changed files with 3 additions and 1 deletions

View File

@ -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;