Chapter 5. Programs Embedding Python
Prev |  | Next

# Chapter 5. Programs Embedding Python

## 5.1. Building Embedded Programs

Any package that installs a program which embeds a Python interpreter must declare `Build-Depends` on `python`X`.`Y`-dev`, where `X`.`Y` is the Python version the program builds against. It should be the current default Python version unless the program does not work correctly with this version.

## 5.2. Embedded Python Dependencies

Dependencies for programs linking against the shared Python library will be automatically created by `dpkg-shlibdeps`. The `libpython`X`.`Y`.so.`Z`` library the program is built against is provided by the `python`X`.`Y`` package.

Prev |  | Next
Chapter 4. Python Programs | Home | Chapter 6. Interaction with Locally Installed Python Versions