From ef57604160ed8885920b572721e8f26e62b5689d2d57b59580a1731de5e8eb0d Mon Sep 17 00:00:00 2001 From: Todd R Date: Sun, 2 Oct 2016 18:25:33 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=55 --- call_python2.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/call_python2.patch b/call_python2.patch index dc4b820..134f32a 100644 --- a/call_python2.patch +++ b/call_python2.patch @@ -1,5 +1,10 @@ +From: toddrme2178@gmail.com +Date: 2016-10-02 14:21:00 +0000 +Subject: Use python2 for subprocess +This patch makes sure the correct version of py2pack is called. +--- --- a/py2pack/requires.py +++ b/py2pack/requires.py @@ -8,7 +13,7 @@ os.chdir(tmp_dir) # generate a temporary json file which contains the metadata - cmd = "python setup.py -q --command-packages py2pack " \ -+ cmd = "python3 setup.py -q --command-packages py2pack " \ ++ cmd = "python setup.py -q --command-packages py2pack2 " \ "get_metadata -o %s " % tempfile_json.name try: subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)