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

c_ast.cpython-*.pyc is rewritten after it is installed #542

Open
tatsuki-makino opened this issue May 22, 2024 · 0 comments
Open

c_ast.cpython-*.pyc is rewritten after it is installed #542

tatsuki-makino opened this issue May 22, 2024 · 0 comments

Comments

@tatsuki-makino
Copy link

When using pycparser, pycache/c_ast.cpython-*.pyc may be rewritten to something different than it was at the time it was installed.

I already forgot what I looked into this, but it happens when the path to the file when _run_build_tables is executed is different from the path to the file when the installation is finished and actually used.
Also, file rewriting occurs only when the file is executed with the permission to rewrite the file.
This rewriting is troublesome in an installation package system that can detect file changes by hash or other.

It seems that this problem can already be solved with PEP 517, but if it is to be solved on the pycparser side it would be better if it were changed like patch.txt

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

No branches or pull requests

1 participant