Accepting request 845689 from home:bnavigator:branches:devel:languages:python
- Fix shebang replacement for multiple python flavors OBS-URL: https://build.opensuse.org/request/show/845689 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=122
This commit is contained in:
parent
a1c9fdbbfa
commit
b1f793a420
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 3 10:15:29 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Fix shebang replacement for multiple python flavors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 21:09:55 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
|
@ -71,7 +71,7 @@ sed -i "1s/#!.*//" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psosx.p
|
||||
|
||||
%{python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-psutil
|
||||
cp -r scripts %{buildroot}%{_docdir}/%{$python_prefix}-psutil/
|
||||
find %{buildroot}%{_docdir}/%{$python_prefix}-psutil/scripts/ -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python|#!%__$python|" {} \;
|
||||
find %{buildroot}%{_docdir}/%{$python_prefix}-psutil/scripts/ -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python.*|#!%{__$python}|" {} \;
|
||||
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-psutil/
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user