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
This commit is contained in:
Tomáš Chvátal 2020-04-04 16:22:15 +00:00 committed by Git OBS Bridge
parent c8dc2273b2
commit 3c044d3e01
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