File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 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
3838RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name \* .py | grep -v __init__ | xargs rm -rf
3939RUN find ./python/lib/$runtime/site-packages -name __pycache__ -type d -exec rm -r {} \+
4040
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+
4150FROM scratch
4251COPY --from=builder /build/python /
You can’t perform that action at this time.
0 commit comments