You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove ddtrace patch.py files from layer (#763)
chore: remove ddtrace patch.py files from layer
version gate the patch.py file removing
Apply suggestion from @brettlangdon
Co-authored-by: brett.langdon <brett.langdon@datadoghq.com>
# DEV: ddtrace>=4.7.0rc4 checks for .pyc files in addition to .py files for instrumentation
67
+
# discovery (DataDog/dd-trace-py#17196), so we can safely remove all .py files.
68
+
# For older versions, we need to keep patch.py files for instrumentation discovery.
69
+
RUN if python -c "from packaging.version import Version; import ddtrace; exit(0 if Version(ddtrace.__version__) >= Version('4.7.0rc3') else 1)"; then \
0 commit comments