Skip to content

Commit

Permalink
Merge pull request #357 from DataDog/ara.pulido/fix_python_version
Browse files Browse the repository at this point in the history
Prepare buildpack for python version 3.11
  • Loading branch information
arapulido authored Jan 29, 2024
2 parents 536ee38 + cab6ddf commit 9dad675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/datadog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ if [ "$DD_DISABLE_HOST_METRICS" == "true" ]; then
fi

# Find if the Python folder is 2 or 3
PYTHON_DIR=$(find "$DD_DIR/embedded/lib/" -maxdepth 1 -type d -name "python[2-3]\.[0-9]" -printf "%f")
DD_PYTHON_VERSION=$(echo $PYTHON_DIR | sed -n -e 's/^python\([2-3]\)\.[0-9]/\1/p')
PYTHON_DIR=$(find "$DD_DIR/embedded/lib/" -maxdepth 1 -type d -regex ".*/python[2-3]\.[0-9]+" -printf "%f")
DD_PYTHON_VERSION=$(echo $PYTHON_DIR | sed -n -E 's/^python([2-3])\.[0-9]+/\1/p')

if [ "$DD_PYTHON_VERSION" = "3" ]; then
# This is not needed for Agent7 onwards, as it only has one Python version
Expand Down

0 comments on commit 9dad675

Please sign in to comment.