hooks/rewrite-python-shebang: bin-only scripts support
This commit is contained in:
parent
4167e269b7
commit
5a231f8c13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue