File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ RUN PYTHONNODEBUGRANGES=1 python -OO -m compileall -b ./python/lib/$runtime/site
5050# remove all .py files except ddtrace/contrib/*/__init__.py which are necessary
5151# for ddtrace.patch to discover instrumationation packages.
5252RUN find ./python/lib/$runtime/site-packages -name \* .py | grep -v ddtrace/contrib | xargs rm -rf
53- # RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name \*.py | grep -v __init__ | xargs rm -rf
53+ RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name "*.py" \
54+ -not -path "./python/lib/$runtime/site-packages/ddtrace/contrib/internal/logging/*" \
55+ | grep -v __init__ | xargs rm -rf
5456RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
5557
5658# When building ddtrace from branch, remove extra source files. These are
You can’t perform that action at this time.
0 commit comments