Skip to content

Commit d580d5f

Browse files
authored
Ddtrace now requires patch.py rather than __init__.py files. (#566)
1 parent b64be3b commit d580d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ RUN rm -rf \
4747
# https://docs.python.org/3.11/using/cmdline.html#cmdoption-O
4848
# https://docs.python.org/3/using/cmdline.html#envvar-PYTHONNODEBUGRANGES
4949
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
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 | grep -v patch.py | xargs rm -rf
5454
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
5555

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

0 commit comments

Comments
 (0)