/usr/share/doc/python3/python-policy.html
NameSizeModeActions
build_dependencies.html35090644editdlrm
embed.html36180644editdlrm
index.html97200644editdlrm
module_packages.html168660644editdlrm
other.html22860644editdlrm
packaging_tools.html75150644editdlrm
programs.html70100644editdlrm
python.html215220644editdlrm
python3.html36300644editdlrm
upgrade.html51600644editdlrm
Edit: /usr/share/doc/python3/python-policy.html/build_dependencies.html (3509B)
Appendix A. Build Dependencies

Appendix A. Build Dependencies

Build dependencies for Python-dependent packages must be declared for every Python version that the package is built for.

The python3-all-dev should be used when building extensions for any or all Python 3 versions. The python-all-dev should be used when building extensions for any or all Python 2 versions. To build for a specific version or versions, declare Build-Depends on pythonX.Y-dev.

Some applications and pure Python modules may be able to avoid dependency on the -dev packages, and declare Build-Depends on the runtime environment only (python3, python3-all, python2, python2-all). A package that does not require the -dev packages must not declare Build-Depends on them.

Declare Build-Depends on at least:

Build-Depends: python2.7
Build-Depends: python2.6 (>= 2.6-1)
Build-Depends: python (>= 2.6.6-9)
Build-Depends: python-all

Build-Depends: python2.7-dev
Build-Depends: python3.5-dev (>= 3.5.1-1)
Build-Depends: python-dev (>= 2.6.6-9)
Build-Depends: python-all-dev
Build-Depends: python3-all-dev (>= 3.2)