File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ RUN rm -rf \
47
47
# https://docs.python.org/3.11/using/cmdline.html#cmdoption-O
48
48
# https://docs.python.org/3/using/cmdline.html#envvar-PYTHONNODEBUGRANGES
49
49
RUN PYTHONNODEBUGRANGES=1 python -OO -m compileall -b ./python/lib/$runtime/site-packages
50
- # remove all .py files except ddtrace/contrib/*/__init__ .py which are necessary
50
+ # remove all .py files except ddtrace/contrib/*/patch .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 | grep -v patch.py | xargs rm -rf
54
54
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
55
55
56
56
# When building ddtrace from branch, remove extra source files. These are
You can’t perform that action at this time.
0 commit comments