![]() |
VOOZH | about |
This document covers how to setup a Python environment to work on Agent-based Integrations, including installing the interpreter and developer tool.
Many operating systems come with a pre-installed version of Python. However, the version of Python installed by default may not be the same as the one used by the latest Agent. To ensure that you have everything you need to get an integration running, install a dedicated Python interpreter.
Install Python 3.13 using Homebrew:
Update Homebrew:
brew update
Install Python:
brew install python@3.13
Check the Homebrew installation output and run any additional commands recommended by the installation script.
Verify that the Python binary is installed in your PATH and that have installed the correct version:
which python3.13
You should see the following output depending on your Mac architecture:
/opt/homebrew/bin/python3.13
/usr/local/bin/python3.13
PATH:> where python
C:\Users\<USER>\AppData\Local\Programs\Python\Python39\python.exe
You have 2 options to install the ddev CLI.
.pkg file: ddev-17.0.1.pkgddev command has been added to your PATH, run the following command to retrieve the ddev version:ddev --version
17.0.1
.msi files:ddev command has been added to your PATH, run the following command to retrieve the ddev version:ddev --version
17.0.1
curl command. The -L option allows for redirects, and the -o option specifies the file name to which the downloaded package is written. In this example, the file is written to ddev-17.0.1.pkg in the current directory.curl -L -o ddev-17.0.1.pkg https://github.com/DataDog/integrations-core/releases/download/ddev-v17.0.1/ddev-17.0.1.pkg
installer program, specifying the downloaded .pkg file as the source. Use the -pkg parameter to specify the name of the package to install, and the -target / parameter for the drive in which to install the package. The files are installed to /usr/local/ddev, and an entry is created at /etc/paths.d/ddev that instructs shells to add the /usr/local/ddev directory to. You must include sudo on the command to grant write permissions to those folders.sudo installer -pkg ./ddev-17.0.1.pkg -target /
ddev command in your PATH, use the following command.ddev --version
17.0.1
msiexec program, specifying one of the .msi files as the source. Use the /passive and /i parameters to request an unattended, normal installation.x64:msiexec /passive /i https://github.com/DataDog/integrations-core/releases/download/ddev-v17.0.1/ddev-17.0.1-x64.msi
x86:msiexec /passive /i https://github.com/DataDog/integrations-core/releases/download/ddev-v17.0.1/ddev-17.0.1-x86.msi
ddev command in your PATH, use the following command.ddev --version
17.0.1
After downloading the archive corresponding to your platform and architecture, extract the binary to a directory that is on your PATH and rename the binary to ddev.
| |