Accepting request 820679 from home:gmbr3:Active

- Fix %py3_compile being incorrectly defined

OBS-URL: https://build.opensuse.org/request/show/820679
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=15
This commit is contained in:
Matej Cepl 2020-07-13 12:13:55 +00:00 committed by Git OBS Bridge
parent 7091281f60
commit 476451f1a8
2 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,7 @@
# compilation macros that might be in use somewhere
%py3_compile(O) \
find %1 -name '*.pyc' -exec rm -f {} ";"\
python3-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\
python3 -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 {} ";"\
python3 -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\

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 13 11:19:08 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
- Fix %py3_compile being incorrectly defined
-------------------------------------------------------------------
Fri Jul 10 10:55:15 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>