Skip to content

Commit 92a9b91

Browse files
committed
don't use pyc files during image build
1 parent 3c00c6a commit 92a9b91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-python/3/importlib/_bootstrap_external.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def cache_from_source(path, debug_override=None, *, optimization=None):
312312
If sys.implementation.cache_tag is None then NotImplementedError is raised.
313313
314314
"""
315+
if __graalpython__.in_image_buildtime:
316+
return
315317
if debug_override is not None:
316318
_warnings.warn('the debug_override parameter is deprecated; use '
317319
"'optimization' instead", DeprecationWarning)

0 commit comments

Comments
 (0)