17
0

Accepting request 731157 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/731157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-EasyProcess?expand=0&rev=17
This commit is contained in:
2019-09-23 10:17:19 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 15 03:11:23 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Fix examples to use sys.executable
-------------------------------------------------------------------
Mon Jun 17 12:15:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

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