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

Fix writing of pyc header, add more tests #39

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Fix writing of pyc header, add more tests #39

merged 2 commits into from
Oct 15, 2024

Conversation

keszybz
Copy link
Owner

@keszybz keszybz commented Oct 15, 2024

No description provided.

I managed to somehow get this completely wrong. That number is the size of the
original .py file, nothing related to the bytecode file itself. Unfortunately
this causes python to ignore the pyc file (if the py file is there to
compare), so it's a noticable bug. The packages that were built with that will
need to be rebuilt.

Unfortunately the test files that were adjusted previously need to be adjusted
again.
A test was added earlier, but it didn't actually test how the result looks.
Let's test this a bit more. We have 7 files matching
tests/cases/python_stdlib/*/z*.fixed, this should be enough.
@keszybz
Copy link
Owner Author

keszybz commented Oct 15, 2024

I rebuilt a package with those patches and the issue seems to be fixed.

@keszybz keszybz merged commit b96c52c into main Oct 15, 2024
8 checks passed
@keszybz keszybz deleted the pyc-header branch October 15, 2024 09:19
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.

1 participant