Skip to content

Commit de0c1e9

Browse files
committed
only save contrib/internal/logging's py
1 parent 22888d8 commit de0c1e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff 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.
5252
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
5456
RUN 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

0 commit comments

Comments
 (0)