Accepting request 791387 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/791387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astor?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2020-04-05 18:53:41 +00:00 committed by Git OBS Bridge
commit 96c68aa34a
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 3 21:34:35 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
- 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 <info@paolostivanin.com>

View File

@ -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