aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg
diff options
context:
space:
mode:
authorEnno Boland <gottox@voidlinux.eu>2016-03-27 13:12:40 +0000
committerEnno Boland <gottox@voidlinux.eu>2016-03-27 13:14:02 +0000
commit05b15f6f4f8664e9ee5bc9515c524c15929bbfac (patch)
tree85a23e4db5fcb6d10a7095b3d2ff07e58ef1a376 /common/hooks/pre-pkg
parenta5cbb04f2e6b200f303fece6e62de2afa87c8f32 (diff)
downloadvoid-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar.gz
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar.bz2
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar.lz
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar.xz
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.tar.zst
void-packages-05b15f6f4f8664e9ee5bc9515c524c15929bbfac.zip
common/hooks: look for pycompile_version to identify python version.
Also prepary python 3.5
Diffstat (limited to 'common/hooks/pre-pkg')
-rw-r--r--common/hooks/pre-pkg/03-rewrite-python-shebang.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh
index cdd608f4b46..b928ec3a393 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;