From 14825662642c200d5b42d23d4f753cf67bbbaa58232068c7d16df59e70eace78 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 3 Nov 2017 14:32:45 +0000 Subject: [PATCH] Accepting request 538481 from home:pluskalm:branches:devel:languages:python:Factory - Call python2 instead of python in macros OBS-URL: https://build.opensuse.org/request/show/538481 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=211 --- macros.python2 | 4 ++-- python-base.changes | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/macros.python2 b/macros.python2 index 434c2c6..696f6a4 100644 --- a/macros.python2 +++ b/macros.python2 @@ -9,10 +9,10 @@ # these might be still in use somewhere %py_compile(O) \ find %1 -name '*.pyc' -exec rm -f {} \\; \ -python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +python2 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ %{-O: \ find %1 -name '*.pyo' -exec rm -f {} \\; \ -python -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +python2 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ } %py_requires(d) \ BuildRequires: /usr/bin/python %{-d:python-devel} \ diff --git a/python-base.changes b/python-base.changes index 734ee8a..9ff967c 100644 --- a/python-base.changes +++ b/python-base.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 2 16:53:42 UTC 2017 - mpluskal@suse.com + +- Call python2 instead of python in macros + ------------------------------------------------------------------- Thu Aug 17 08:58:02 CEST 2017 - kukuk@suse.de