From 3c044d3e013b3abc0044bda43b653c14d47ff2f6ebbae3e1c75c9f5a2e1ea940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 4 Apr 2020 16:22:15 +0000 Subject: [PATCH] Accepting request 791276 from home:darix:branches:devel:languages:python - remove the shebang line from the rtrip.py otherwise the python3 package will require /usr/bin/python. another option would be to fix the she bang line per subpackage but I dont know how yet. OBS-URL: https://build.opensuse.org/request/show/791276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=15 --- python-astor.changes | 6 ++++++ python-astor.spec | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-astor.changes b/python-astor.changes index 9a1aa4a..a4c7158 100644 --- a/python-astor.changes +++ b/python-astor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 3 21:34:35 UTC 2020 - Marcus Rueckert + +- remove the shebang line from the rtrip.py otherwise the python3 + package will require /usr/bin/python. + ------------------------------------------------------------------- Wed Mar 25 15:11:49 UTC 2020 - Paolo Stivanin diff --git a/python-astor.spec b/python-astor.spec index 6405354..a0e51ed 100644 --- a/python-astor.spec +++ b/python-astor.spec @@ -63,10 +63,11 @@ There are some other similar libraries, but astor focuses on the following areas %prep %setup -q -n astor-%{version} %patch0 -p1 -# ugly fix for the use of /usr/bin/env -sed -i 's@env @@' astor/rtrip.py %build +# ugly fix for the use of /usr/bin/env +sed -i 's@#!.*@@' astor/rtrip.py +chmod a-x astor/rtrip.py %python_build %install