/
usr
/
lib
/
rpm
/
macros.d
/
/usr/lib/rpm/macros.d
mkdir
upload
Name
Size
Mode
Actions
macros.alt-python311
2082
0644
edit
dl
rm
macros.dwz
1806
0644
edit
dl
rm
macros.efi-srpm
3075
0644
edit
dl
rm
macros.environment-modules
75
0644
edit
dl
rm
macros.fedora-misc
2829
0644
edit
dl
rm
macros.fedora-misc-srpm
239
0644
edit
dl
rm
macros.firewalld
239
0644
edit
dl
rm
macros.forge
12733
0644
edit
dl
rm
macros.ghc-srpm
414
0644
edit
dl
rm
macros.go-srpm
7342
0644
edit
dl
rm
macros.info
390
0644
edit
dl
rm
macros.kernel-srpm
116
0644
edit
dl
rm
macros.ldc-srpm
73
0644
edit
dl
rm
macros.ldconfig
307
0644
edit
dl
rm
macros.mono-srpm
181
0644
edit
dl
rm
macros.nodejs-srpm
324
0644
edit
dl
rm
macros.ocaml-srpm
737
0644
edit
dl
rm
macros.openblas-srpm
104
0644
edit
dl
rm
macros.perl
5184
0644
edit
dl
rm
macros.perl-srpm
794
0644
edit
dl
rm
macros.pybytecompile
886
0644
edit
dl
rm
macros.python
3439
0644
edit
dl
rm
macros.python-srpm
6093
0644
edit
dl
rm
macros.python3
3714
0644
edit
dl
rm
macros.rust-srpm
61
0644
edit
dl
rm
macros.scl
13857
0644
edit
dl
rm
macros.selinux-policy
6766
0644
edit
dl
rm
macros.systemd
4126
0644
edit
dl
rm
macros.systemtap
206
0644
edit
dl
rm
macros.valgrind-srpm
127
0644
edit
dl
rm
macros.vim
40
0644
edit
dl
rm
macros.vpath
228
0644
edit
dl
rm
Edit:
/usr/lib/rpm/macros.d/macros.pybytecompile
(886B)
# 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
Save
cmd:
run