Closed mcepl closed 5 years ago
Yes, this should fix the problem of unreproducible .pyc files. However, it also left the package I tested without .pyc files, which could give some percent penalty in startup time.
Maybe add something like the following to the %pyproject_install
macro instead?
for d in %{buildroot}%{$python_sitelib} %{buildroot}%{$python_sitearch}; do
if [ -d $d ]; then
$python -m compileall $d
$python -O -m compileall $d
fi
done
Fixes bsc#1094323
CC: @bmwiedemann