Skip to content

Commit 3c79531

Browse files
authored
Remove extra ddtrace source files. (#481)
1 parent e1c4edb commit 3c79531

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,14 @@ RUN find ./python/lib/$runtime/site-packages -name \*.py | grep -v ddtrace/contr
3838
RUN find ./python/lib/$runtime/site-packages/ddtrace/contrib -name \*.py | grep -v __init__ | xargs rm -rf
3939
RUN 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+
4150
FROM scratch
4251
COPY --from=builder /build/python /

0 commit comments

Comments
 (0)