File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,11 @@ RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracki
2525RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
2626# _stack_v2 may not exist for some versions of ddtrace (e.g. under python 3.13)
2727RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
28- # remove *.dist-info directories except any entry_points.txt files
29- RUN find ./python/lib/$runtime/site-packages/*.dist-info -not -name "entry_points.txt" -type f -delete
28+ # remove *.dist-info directories except any entry_points.txt files and METADATA files required for Appsec Software Composition Analysis
29+ RUN find ./python/lib/$runtime/site-packages/*.dist-info \
30+ -type f \
31+ ! \( -name 'entry_points.txt' -o -name 'METADATA' \) \
32+ -delete
3033RUN find ./python/lib/$runtime/site-packages -type d -empty -delete
3134
3235# Remove requests and dependencies
You can’t perform that action at this time.
0 commit comments