You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am installing distribution packages with pip and then setting the timestamp in the .pyc file to a known value. This does not use the new "hash-based" cache files.
Alternative Solutions
I could re-compile the Python files with the preferred mode.
What's the problem this feature will solve?
I'm trying to have
pip
create "hash-based"[0].pyc
files when you install a distribution package.0: https://docs.python.org/3.7/reference/import.html#cached-bytecode-invalidation
Describe the solution you'd like
pip
could accept a--invalidation-mode
argument which matches the same argument forpython -m compileall
[1] and sets the cache method.1: https://docs.python.org/3.7/library/compileall.html#cmdoption-compileall-invalidation-mode
Currently I am installing distribution packages with
pip
and then setting the timestamp in the .pyc file to a known value. This does not use the new "hash-based" cache files.Alternative Solutions
I could re-compile the Python files with the preferred mode.
Additional context
https://www.python.org/dev/peps/pep-0552/
The text was updated successfully, but these errors were encountered: