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

bytecompile: process .py files in deterministic order #12788

Closed
wants to merge 1 commit into from

Conversation

bmwiedemann
Copy link

Without this patch, Setzer produced random variations in .pyc files.

It probably matters because of the way python does things - dumping internal structures into .pyc files.

This patch was done while working on reproducible builds for openSUSE.

Without this patch, Setzer produced random variations.

It probably matters because of the way python does things
dumping internal structures into .pyc files.

This patch was done while working on reproducible builds for openSUSE.
@bmwiedemann
Copy link
Author

.pyc file diff contained

-p/home/abuild/rpmbuild/BUILDROOT/Setzer-65-0.0.x86_64/usr/lib/python3.11/site-packages/setzer/dialogs/__init__.py
+</usr/lib/python3.11/site-packages/setzer/dialogs/__init__.py

which might indicate that there is some other problem when it cannot decide which path to use. The shorter one would probably be correct.

@eli-schwartz
Copy link
Member

That indicates the ddir being passed is incorrect.

@eli-schwartz
Copy link
Member

@bmwiedemann I believe the correct fix is actually master...eli-schwartz:meson:pycompile-destdir, please test.

@bmwiedemann
Copy link
Author

Yes, your version is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants