File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
6464RUN 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
6968RUN 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
You can’t perform that action at this time.
0 commit comments