[packages/python3] - avoid /usr/bin/env shebang, use direct python3 path

qboosh qboosh at pld-linux.org
Tue Oct 21 18:51:01 CEST 2014


commit 6e059f2e42d4596dd739e5e2d7fa4ddc555dd971
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Oct 21 18:51:47 2014 +0200

    - avoid /usr/bin/env shebang, use direct python3 path

 python3.spec | 2 ++
 1 file changed, 2 insertions(+)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/6e059f2e42d4596dd739e5e2d7fa4ddc555dd971



More information about the pld-cvs-commit mailing list