File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,14 @@ RUN find ./python/lib/$runtime/site-packages -name \*.py | grep -v ddtrace/contr
38
38
RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name \* .py | grep -v __init__ | xargs rm -rf
39
39
RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
40
40
41
+ # When building ddtrace from branch, remove extra source files. These are
42
+ # removed by the ddtrace build process before publishing a wheel to PyPI.
43
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .c -delete
44
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .cpp -delete
45
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .cc -delete
46
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .h -delete
47
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .hpp -delete
48
+ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \* .pyx -delete
49
+
41
50
FROM scratch
42
51
COPY --from=builder /build/python /
You can’t perform that action at this time.
0 commit comments