PATH:
lib
/
rpm
/
macros.d
# 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.alt-python38
[edit]
[-] macros.valgrind-srpm
[edit]
[-] macros.perl-srpm
[edit]
[-] macros.systemtap
[edit]
[-] macros.alt-python312
[edit]
[-] macros.fedora-misc-srpm
[edit]
[-] macros.selinux-policy
[edit]
[-] macros.ldc-srpm
[edit]
[-] macros.forge
[edit]
[-] macros.nodejs-srpm
[edit]
[-] macros.ghc-srpm
[edit]
[-] macros.alt-python313
[edit]
[-] macros.environment-modules
[edit]
[-] macros.python-srpm
[edit]
[-] macros.openblas-srpm
[edit]
[-] macros.firewalld
[edit]
[-] macros.fedora-misc
[edit]
[-] macros.info
[edit]
[-] macros.rust-srpm
[edit]
[-] macros.go-srpm
[edit]
[-] macros.kernel-srpm
[edit]
[-] macros.efi-srpm
[edit]
[+]
..
[-] macros.alt-python39
[edit]
[-] macros.pybytecompile
[edit]
[-] macros.vpath
[edit]
[-] macros.perl
[edit]
[-] macros.scl
[edit]
[-] macros.qt5-qtbase
[edit]
[-] macros.dwz
[edit]
[-] macros.vim
[edit]
[-] macros.python
[edit]
[-] macros.ocaml-srpm
[edit]
[-] macros.alt-python311
[edit]
[-] macros.ruby
[edit]
[-] macros.systemd
[edit]
[-] macros.mono-srpm
[edit]
[-] macros.python2
[edit]
[-] macros.python3
[edit]
[-] macros.alt-python310
[edit]
[-] macros.ldconfig
[edit]