Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use timestamps for byte code invalidation #4

Merged
merged 1 commit into from Aug 26, 2022
Merged

Conversation

Tomin1
Copy link
Member

@Tomin1 Tomin1 commented Aug 9, 2022

Make builds more reproducible by telling rpmbuild to set SOURCE_DATE_EPOCH variable from timestamp in changelog. [EDIT: Done elsewhere.] However, building this can still generate different byte code in pyc files so that they don't match to previous build.

Add a patch from Fedora to mitigate the effect on import performance.

This restores some performance on imports by using mtime instead of
checksum to tell if byte code files are still valid. The patch is from
Fedora.

Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
@Tomin1
Copy link
Member Author

Tomin1 commented Aug 26, 2022

Dropped the first commit because it was enabled globally.

@Tomin1 Tomin1 changed the title Make builds more reproducible Use timestamps for byte code invalidation Aug 26, 2022
@Tomin1 Tomin1 merged commit 3908db9 into master Aug 26, 2022
@mlehtima mlehtima deleted the jb57221_timestamps branch February 4, 2023 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants