From b1f793a4209b1b3d2b99393d27642fdbac42b829237e850dae2313d55be5f685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Str=C3=B6der?= Date: Tue, 3 Nov 2020 11:04:32 +0000 Subject: [PATCH] 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 --- python-psutil.changes | 5 +++++ python-psutil.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-psutil.changes b/python-psutil.changes index 3993af7..f41b648 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 3 10:15:29 UTC 2020 - Benjamin Greiner + +- Fix shebang replacement for multiple python flavors + ------------------------------------------------------------------- Wed Sep 16 21:09:55 UTC 2020 - Dirk Mueller diff --git a/python-psutil.spec b/python-psutil.spec index b2abe28..4f12fd5 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -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} }