File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
28
28
RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/libdd_wrapper*.so
29
29
RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/ddup/_ddup.*.so
30
30
RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
31
- RUN find . -name "*.dist-info" -type d | xargs rm -rf
31
+ # remove *.dist-info directories except any entry_points.txt files
32
+ RUN find ./python/lib/$runtime/site-packages/*.dist-info -not -name "entry_points.txt" -type f -delete
33
+ RUN find ./python/lib/$runtime/site-packages -type d -empty -delete
32
34
33
35
# Precompile all .pyc files and remove .py files. This speeds up load time.
34
36
# Compile with optimization level 2 (-OO) and PYTHONNODEBUGRANGES=1 to redtce
You can’t perform that action at this time.
0 commit comments