Skip to content

Commit 4ef4880

Browse files
committed
chore: remove ddtrace patch.py files from layer
1 parent 38cabf2 commit 4ef4880

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ RUN rm -rf \
6262
# https://docs.python.org/3.11/using/cmdline.html#cmdoption-O
6363
# https://docs.python.org/3/using/cmdline.html#envvar-PYTHONNODEBUGRANGES
6464
RUN PYTHONNODEBUGRANGES=1 python -OO -m compileall -b ./python/lib/$runtime/site-packages
65-
# remove all .py files except ddtrace/contrib/*/patch.py which are necessary
66-
# for ddtrace.patch to discover instrumationation packages.
67-
RUN find ./python/lib/$runtime/site-packages -name \*.py | grep -v ddtrace/contrib | xargs rm -rf
68-
RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name \*.py | grep -v patch.py | xargs rm -rf
65+
# remove all .py files
66+
# DEV: previously we kept patch.py files, but this is no longer necessary
67+
RUN find ./python/lib/$runtime/site-packages -name \*.py | xargs rm -rf
6968
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
7069

7170
# When building ddtrace from branch, remove extra source files. These are

0 commit comments

Comments
 (0)