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 @@ -50,7 +50,9 @@ RUN PYTHONNODEBUGRANGES=1 python -OO -m compileall -b ./python/lib/$runtime/site
50
50
# remove all .py files except ddtrace/contrib/*/__init__.py which are necessary
51
51
# for ddtrace.patch to discover instrumationation packages.
52
52
RUN 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
54
56
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
55
57
56
58
# When building ddtrace from branch, remove extra source files. These are
You can’t perform that action at this time.
0 commit comments