What the build does
- Copies your dependency file, and installs from it. See Dependencies.
- Copies the whole agent folder into
/app, which is the working directory when your agent runs. - Compiles your code to bytecode, so it starts faster. A file that does not compile is left for the smoke test to report, with a real traceback.
- Runs your
build.commands, if you have any.
print and logging lines reach your logs as they are written.
The architecture: 64 bit ARM Linux
Every agent runs on 64 bit ARM Linux (aarch64, also called arm64). Pure Python packages work as they are. A package with a native extension needs a wheel for manylinux aarch64, which most popular packages publish.
A package that publishes none fails the build with:
aarch64 wheel, or use an alternative. The build image has a C compiler, so a package that builds from source with no system libraries beyond the standard ones can still install.
System packages
Two system packages can be installed withsystemPackages:
agent.yml
`<package>` is not an available system package. To ask for another, email [email protected].
Build commands
build.commands runs shell commands after your code is copied in and your dependencies are installed, in the agent folder:
agent.yml
Related
- Entrypoints: how your agent object is found.
- Frameworks: each Python framework’s page.
- The
agent.ymlreference.