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
This commit is contained in:
parent
79ff2b8efe
commit
1482566264
@ -9,10 +9,10 @@
|
|||||||
# these might be still in use somewhere
|
# these might be still in use somewhere
|
||||||
%py_compile(O) \
|
%py_compile(O) \
|
||||||
find %1 -name '*.pyc' -exec rm -f {} \\; \
|
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: \
|
%{-O: \
|
||||||
find %1 -name '*.pyo' -exec rm -f {} \\; \
|
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) \
|
%py_requires(d) \
|
||||||
BuildRequires: /usr/bin/python %{-d:python-devel} \
|
BuildRequires: /usr/bin/python %{-d:python-devel} \
|
||||||
|
@ -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
|
Thu Aug 17 08:58:02 CEST 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user