From 5df38635c5823ebe184be594a467c9270110e5c4 Mon Sep 17 00:00:00 2001 From: Branden Clark Date: Tue, 21 Nov 2023 04:20:55 -0500 Subject: [PATCH] revert remove pyc cleanup during packaging (#20995) --- omnibus/config/software/datadog-agent-finalize.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/omnibus/config/software/datadog-agent-finalize.rb b/omnibus/config/software/datadog-agent-finalize.rb index 3d5f9c9a0ee2d..8c6c62134eb77 100644 --- a/omnibus/config/software/datadog-agent-finalize.rb +++ b/omnibus/config/software/datadog-agent-finalize.rb @@ -42,9 +42,12 @@ # based on the config file delete "#{conf_dir}/apm.yaml.default" delete "#{conf_dir}/process_agent.yaml.default" - + # load isn't supported by windows delete "#{conf_dir}/load.d" + + # Remove .pyc files from embedded Python + command "del /q /s #{windows_safe_path(install_dir)}\\*.pyc" end if linux_target? || osx_target?