Skip to content

Commit

Permalink
Remove broken symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
arapulido committed Feb 21, 2024
1 parent 34bee44 commit 7c4c2c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ if [ "$DD_PYTHON_VERSION" = "3" ]; then
rm -f "$APT_DIR"/opt/datadog-agent/embedded/bin/pydoc* || true
fi

# Remove broken symlinks
rm -f "$APT_DIR"/opt/datadog-agent/embedded/bin/2to3 || true
rm -f "$APT_DIR"/opt/datadog-agent/embedded/bin/pip || true
rm -f "$APT_DIR"/opt/datadog-agent/embedded/ssl/cert.pem || true

# Rewrite package-config files
find "$APT_DIR" -type f -ipath '*/pkgconfig/*.pc' | xargs --no-run-if-empty -n 1 sed -i -e 's!^prefix=\(.*\)$!prefix='"$APT_DIR"'\1!g'
Expand Down
1 change: 0 additions & 1 deletion extra/datadog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ if [ "$DD_PYTHON_VERSION" = "3" ]; then
ln -sfn "$DD_DIR"/embedded/bin/python3 "$DD_DIR"/embedded/bin/python
ln -sfn "$DD_DIR"/embedded/bin/python3-config "$DD_DIR"/embedded/bin/python-config
ln -sfn "$DD_DIR"/embedded/bin/pip3 "$DD_DIR"/embedded/bin/pip
ln -sfn "$DD_DIR"/embedded/bin/pydoc3 "$DD_DIR"/embedded/bin/pydoc
fi

# Ensure all check and library locations are findable in the Python path.
Expand Down

0 comments on commit 7c4c2c1

Please sign in to comment.