forked from pool/python-EasyProcess
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:
committed by
Git OBS Bridge
parent
a027993a45
commit
856221e4a7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user