churchyard pushed to pypy3 (f21). "Replace all lib-python python shebangs with pypy"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 10 19:36:29 UTC 2015


From 36afc7f79102c83960c3d6bf8f4a8620554c0137 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro at hroncok.cz>
Date: Tue, 5 May 2015 18:32:38 +0200
Subject: Replace all lib-python python shebangs with pypy


diff --git a/pypy3.spec b/pypy3.spec
index edbfd2f..6e6bd46 100644
--- a/pypy3.spec
+++ b/pypy3.spec
@@ -281,6 +281,11 @@ for f in rpython/translator/goal/bpnn.py ; do
    chmod a-x $f
 done
 
+# Replace all lib-python python shebangs with pypy
+find lib-python/%{pylibver} -name "*.py" -exec \
+  sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!/usr/bin/%{name}|' \
+    "{}" \
+    \;
 
 %build
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pypy3.git/commit/?h=f21&id=36afc7f79102c83960c3d6bf8f4a8620554c0137


More information about the scm-commits mailing list