Fix pyc unreproducibility

Surprisingly, pyc does not have their modification time header
respecting SDE but @marmarek found that was file time instead.
This commit is contained in:
Frédéric Pierret (fepitre) 2021-02-27 16:17:19 +01:00
parent 5a45d14af1
commit 340aa50063
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -8,14 +8,17 @@ SETUPTOOLS_OPTS =
SETUPTOOLS_OPTS += $(if $(wildcard /etc/debian_version),--install-layout=deb,) SETUPTOOLS_OPTS += $(if $(wildcard /etc/debian_version),--install-layout=deb,)
export QT_HASH_SEED=0 export QT_HASH_SEED=0
export PYTHONHASHSEED=0
qubesmanager/ui_%.py: ui/%.ui qubesmanager/ui_%.py: ui/%.ui
pyuic5 --from-imports -o $@ $< pyuic5 --from-imports -o $@ $<
touch --reference=$< $@
ui: $(patsubst ui/%.ui,qubesmanager/ui_%.py,$(wildcard ui/*.ui)) ui: $(patsubst ui/%.ui,qubesmanager/ui_%.py,$(wildcard ui/*.ui))
res: res:
pyrcc5 -o qubesmanager/resources_rc.py resources.qrc pyrcc5 -o qubesmanager/resources_rc.py resources.qrc
touch --reference=resources.qrc qubesmanager/resources_rc.py
translations: translations:
$(LRELEASE_QT5) qubesmanager.pro $(LRELEASE_QT5) qubesmanager.pro