File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/dd
2525RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
2626
2727# Precompile all .pyc files and remove .py files. This speeds up load time.
28- # Compile with optimization level 2 (-o 2 ) and PYTHONNODEBUGRANGES=1 to redtce
28+ # Compile with optimization level 2 (-OO ) and PYTHONNODEBUGRANGES=1 to redtce
2929# size of .pyc files.
3030# See https://docs.python.org/3/tutorial/modules.html#compiled-python-files
3131# https://docs.python.org/3.11/using/cmdline.html#cmdoption-O
3232# https://docs.python.org/3/using/cmdline.html#envvar-PYTHONNODEBUGRANGES
33- RUN PYTHONNODEBUGRANGES=1 python -m compileall -o 2 -b ./python/lib/$runtime/site-packages
33+ RUN PYTHONNODEBUGRANGES=1 python -OO -m compileall -b ./python/lib/$runtime/site-packages
3434RUN find ./python/lib/$runtime/site-packages -name \* .py -delete
3535RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
3636
You can’t perform that action at this time.
0 commit comments