hooks/rewrite-python-shebang: bin-only scripts support

This commit is contained in:
Alessio Sergi 2016-10-24 08:08:00 +02:00
parent 4167e269b7
commit 5a231f8c13
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ hook() {
: ${pyver:=2}
if [ -n "$py3_ver" ]; then
pyver=3
fi
if [ -d ${PKGDESTDIR}/usr/lib/python* ]; then
pycompile_version="$(find ${PKGDESTDIR}/usr/lib/python* -type d | grep -o '[[:digit:]]\.[[:digit:]]$')"
fi