From: Jakub Bogusz Date: Tue, 21 Oct 2014 16:51:47 +0000 (+0200) Subject: - avoid /usr/bin/env shebang, use direct python3 path X-Git-Tag: auto/th/python3-3.4.2-2~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=6e059f2e42d4596dd739e5e2d7fa4ddc555dd971;p=packages%2Fpython3.git - avoid /usr/bin/env shebang, use direct python3 path --- diff --git a/python3.spec b/python3.spec index 62720ba..64917bd 100644 --- a/python3.spec +++ b/python3.spec @@ -486,6 +486,8 @@ for f in $files; do done %endif +find . -name '*.py' | xargs -r grep -El '^#! */usr/bin/env python3?' | xargs %{__sed} -i -e '1s,^#! */usr/bin/env python3\?,#!/usr/bin/python3,' + %build if ! grep -q "tmpfs" /proc/self/mounts; then echo "You need to have /dev/shm mounted in order to build this package!" >&2