Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:saltstack:bundle:testing:CentOS7
saltbundlepy-rpm-macros
use-inline-compile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use-inline-compile.patch of Package saltbundlepy-rpm-macros
--- a/flavor.in +++ b/flavor.in @@ -88,14 +88,8 @@ for d in %{buildroot}%{#FLAVOR#_sitelib} %{buildroot}%{#FLAVOR#_sitearch}; do \ if [ -d $d ]; then \ find $d -iname '*.pyc' -delete \ - find $d -iname '*.py' -print0 | xargs -0 %__#FLAVOR# -c ' \ -import sys, py_compile \ -for f in sys.argv[1:]: \ - fp=f[len("%{buildroot}"):] \ - print(f"Generating cached byte-code for {fp}") \ - for o in [0, 1]: \ - py_compile.compile(f, dfile=fp, optimize=o) \ -' \ + find $d -iname '*.py' -printf 'Generating cached byte-code for %%P\\n' -exec %__#FLAVOR# -c \\\ + 'import py_compile; f="{}"; [py_compile.compile(f, dfile=f[len("%{buildroot}"):], optimize=o) for o in [0, 1]]' ';' \ fi \ done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor