@@ -37,6 +37,15 @@ RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_ast/iastpatc
3737RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/_vendor
3838RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
3939RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
40+ RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/internal/test_visibility
41+ RUN find ./python/lib/$runtime/site-packages -name "CMakeLists.txt" -delete
42+ RUN find ./python/lib/$runtime/site-packages -name "*.pyi" -delete
43+ RUN find ./python/lib/$runtime/site-packages -name "*.md" -delete
44+ RUN find ./python/lib/$runtime/site-packages -name "*.sh" -delete
45+ # Dogshell
46+ RUN rm -rf ./python/lib/$runtime/site-packages/datadog/dogshell
47+ RUN rm -rf ./python/lib/$runtime/site-packages/bin/dog*
48+
4049# remove *.dist-info directories except any entry_points.txt files and METADATA files required for Appsec Software Composition Analysis
4150RUN find ./python/lib/$runtime/site-packages/*.dist-info \
4251 -type f \
@@ -50,7 +59,8 @@ RUN rm -rf \
5059 ./python/lib/$runtime/site-packages/urllib3* \
5160 ./python/lib/$runtime/site-packages/certifi* \
5261 ./python/lib/$runtime/site-packages/idna* \
53- ./python/lib/$runtime/site-packages/charset_normalizer*
62+ ./python/lib/$runtime/site-packages/charset_normalizer* \
63+ ./python/lib/$runtime/site-packages/*__mypyc*.so # from charset_normalizer
5464
5565# Precompile all .pyc files and remove .py files. This speeds up load time.
5666# Compile with optimization level 2 (-OO) and PYTHONNODEBUGRANGES=1 to redtce
0 commit comments