Skip to main content

Installing System-Level Dependencies in Frappe Cloud

While developing your app, you may need to use additional Python dependencies. These dependencies are usually added to your requirements.txt or pyproject.toml file.

Some Python packages may also require additional system-level packages to be installed separately using commands like:

sudo apt install ffmpeg

Adding APT Dependencies in Frappe Cloud

If your app requires dependencies that can be installed using Ubuntu’s APT package manager, you can define them in your custom app’s pyproject.toml file.

Add the required packages under the deploy.dependencies.apt section:

[deploy.dependencies.apt]
packages = [
    "ffmpeg",
]

How It Works

Frappe Cloud checks the dependencies listed in your app configuration and automatically installs the required APT packages if they are not already available.

Example

You can refer to the Frappe Drive app configuration as an example of defining APT dependencies in pyproject.toml.

Rating: 0 / 5 (0 votes)