From 856221e4a7f5d203ac579a6425e37942e0e186e8bf8e666d933546ed4501008b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Sep 2019 07:35:20 +0000 Subject: [PATCH] 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 --- python-EasyProcess.changes | 5 +++++ python-EasyProcess.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/python-EasyProcess.changes b/python-EasyProcess.changes index 664de2f..03ffc8b 100644 --- a/python-EasyProcess.changes +++ b/python-EasyProcess.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 15 03:11:23 UTC 2019 - John Vandenberg + +- Fix examples to use sys.executable + ------------------------------------------------------------------- Mon Jun 17 12:15:09 UTC 2019 - Tomáš Chvátal diff --git a/python-EasyProcess.spec b/python-EasyProcess.spec index 9ad232c..0365cb8 100644 --- a/python-EasyProcess.spec +++ b/python-EasyProcess.spec @@ -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