Skip to content

Do not force recompile pyc files#2642

Merged
charliermarsh merged 2 commits intoastral-sh:mainfrom
hauntsaninja:uv-pyc-compile
Mar 25, 2024
Merged

Do not force recompile pyc files#2642
charliermarsh merged 2 commits intoastral-sh:mainfrom
hauntsaninja:uv-pyc-compile

Conversation

@hauntsaninja
Copy link
Copy Markdown
Contributor

Helps with #2637

@charliermarsh charliermarsh added the performance Potential performance improvement label Mar 24, 2024
# doesn't matter much for them, as pip only compiles newly installed files.
force = False
if invalidation_mode != py_compile.PycInvalidationMode.TIMESTAMP:
# Note that compileall has undesirable, arguably buggy behaviour. Even if invalidation_mode
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charliermarsh charliermarsh merged commit a6602ad into astral-sh:main Mar 25, 2024
@hauntsaninja hauntsaninja deleted the uv-pyc-compile branch March 25, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Potential performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants