Skip to content

Commit

Permalink
Remove .pyi files
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed Feb 26, 2025
1 parent 2c8d60b commit 6967596
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion omnibus/config/software/datadog-agent-integrations-py3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
end

unless windows_target?
block do
block "Remove .exe files" do
# setuptools come from supervisor and ddtrace
FileUtils.rm_f(Dir.glob("#{install_dir}/embedded/lib/python#{python_version}/site-packages/setuptools/*.exe"))
end
Expand Down Expand Up @@ -290,6 +290,11 @@
end
end

block "Remove .pyi files" do
# We don't need them at runtime
FileUtils.rm_f(Dir.glob("#{install_dir}/embedded/lib/python#{python_version}/site-packages/**/*.pyi"))
end

# Ship `requirements-agent-release.txt` file containing the versions of every check shipped with the agent
# Used by the `datadog-agent integration` command to prevent downgrading a check to a version
# older than the one shipped in the agent
Expand Down

0 comments on commit 6967596

Please sign in to comment.