PATH:
etc
/
rpm
# Note that the path could itself be a python file, or a directory # Python's compile_all module only works on directories, and requires a max # recursion depth # Usage: # %py_byte_compile <interpereter> <path> # Example: # %py_byte_compile %{__python3} %{buildroot}%{_datadir}/spam/plugins/ # This will terminate build on SyntaxErrors, if you want to avoid that, # use it in a subshell like this: # (%{py_byte_compile <interpereter> <path>}) || : %py_byte_compile()\ python_binary="%1"\ buildroot_path="%2"\ bytecode_compilation_path=".${buildroot_path/#$RPM_BUILD_ROOT}"\ failure=0\ pushd $RPM_BUILD_ROOT\ find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -m py_compile || failure=1\ find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -m py_compile || failure=1\ popd\ test $failure -eq 0
[-] macros.dist
[edit]
[-] macros.ea-php72-config
[edit]
[-] macros.pybytecompile
[edit]
[-] macros.ea-php71-config
[edit]
[-] macros.nodejs-srpm
[edit]
[+]
..
[-] macros.gnat-srpm
[edit]
[-] macros.ea-php73-config
[edit]
[-] macros.dwz
[edit]
[-] macros.ea-php70-php
[edit]
[-] macros.scl
[edit]
[-] macros.ea-php71-php
[edit]
[-] macros.ghc-srpm
[edit]
[-] macros.perl-srpm
[edit]
[-] macros.python2
[edit]
[-] macros.ea-apr
[edit]
[-] macros.ea-apr-util
[edit]
[-] macros.ea-php56-php
[edit]
[-] macros.ea-php73-php
[edit]
[-] macros.ea-php74-php
[edit]
[-] macros.apache2
[edit]
[-] macros.mono-srpm
[edit]
[-] macros.perl
[edit]
[-] macros.python-srpm
[edit]
[-] macros.python
[edit]
[-] macros.ocaml-srpm
[edit]
[-] macros.ea-php72-php
[edit]