15
0

Accepting request 731013 from home:jayvdb:py3only

- Fix examples to use sys.executable

OBS-URL: https://build.opensuse.org/request/show/731013
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-EasyProcess?expand=0&rev=29
This commit is contained in:
Tomáš Chvátal
2019-09-16 07:35:20 +00:00
committed by Git OBS Bridge
parent a027993a45
commit 856221e4a7
2 changed files with 11 additions and 0 deletions

View File

@@ -59,10 +59,16 @@ Limitations:
%prep
%setup -q -n EasyProcess-%{version}
# https://github.com/ponty/EasyProcess/issues/18
sed -i "s/from easyprocess import EasyProcess/from easyprocess import EasyProcess;import sys/" easyprocess/examples/*.py
sed -i "s/'python /sys.executable + ' /" easyprocess/examples/*.py
sed -i "s/'python'/sys.executable/" easyprocess/examples/*.py
# requires pyvirtualdisplay which is mostly dead package
rm -f tests/coverage/fast/test_deadlock.py
2to3 -w easyprocess/examples/log.py
%build
%python_build