Use --hardlink-dupes for Python 3.4+ as well

This commit is contained in:
Petr Viktorin 2021-09-10 15:34:10 +02:00
commit dd8caa5aa3
3 changed files with 34 additions and 38 deletions

View file

@ -28,7 +28,7 @@ py2_byte_compile () {\
py3_byte_compile () {\
python_binary="env PYTHONHASHSEED=0 %1"\
bytecode_compilation_path="%2"\
PYTHONPATH="%{_rpmconfigdir}/redhat" $python_binary -s -B -m compileall2 -o 0 -o 1 -s $RPM_BUILD_ROOT -p / $bytecode_compilation_path \
PYTHONPATH="%{_rpmconfigdir}/redhat" $python_binary -s -B -m compileall2 -o 0 -o 1 -s $RPM_BUILD_ROOT -p / --hardlink-dupes $bytecode_compilation_path \
}\
\
py39_byte_compile () {\