Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / python / python-policy.html / | server ip : 172.67.156.115 your ip : 172.70.80.236 H O M E |
Filename | /usr/share/doc/python/python-policy.html/ap-build_dependencies.html |
Size | 6.22 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:53 |
Last modified | 21-Dec-2013 22:14 |
Last accessed | 06-Jul-2025 23:31 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Debian Python Policy - Build Dependencies</title>
<link href="index.html" rel="start">
<link href="ch-other.html" rel="prev">
<link href="ap-packaging_tools.html" rel="next">
<link href="index.html#contents" rel="contents">
<link href="index.html#copyright" rel="copyright">
<link href="ch-python.html" rel="chapter" title="1 Python Packaging">
<link href="ch-module_packages.html" rel="chapter" title="2 Packaged Modules">
<link href="ch-programs.html" rel="chapter" title="3 Python Programs">
<link href="ch-embed.html" rel="chapter" title="4 Programs Embedding Python">
<link href="ch-other.html" rel="chapter" title="5 Interaction with Locally Installed Python Versions">
<link href="ap-build_dependencies.html" rel="appendix" title="A Build Dependencies">
<link href="ap-packaging_tools.html" rel="appendix" title="B Packaging Tools">
<link href="ap-upgrade.html" rel="appendix" title="C Upgrade Procedure">
<link href="ch-python.html#s-versions" rel="section" title="1.1 Versions">
<link href="ch-python.html#s-base" rel="section" title="1.2 Main packages">
<link href="ch-python.html#s-minimal" rel="section" title="1.3 Minimal packages">
<link href="ch-python.html#s-interpreter" rel="section" title="1.4 Python Interpreter">
<link href="ch-python.html#s-paths" rel="section" title="1.5 Module Path">
<link href="ch-python.html#s-runtimes_hooks" rel="section" title="1.6 Hooks for updates to installed runtimes">
<link href="ch-python.html#s-docs" rel="section" title="1.7 Documentation">
<link href="ch-module_packages.html#s2.1" rel="section" title="2.1 Types of Python Modules">
<link href="ch-module_packages.html#s-package_names" rel="section" title="2.2 Module Package Names">
<link href="ch-module_packages.html#s-specifying_versions" rel="section" title="2.3 Specifying Supported Versions">
<link href="ch-module_packages.html#s-dependencies" rel="section" title="2.4 Dependencies">
<link href="ch-module_packages.html#s-provides" rel="section" title="2.5 Provides">
<link href="ch-module_packages.html#s-byte_compilation" rel="section" title="2.6 Modules Byte-Compilation">
<link href="ch-programs.html#s-version_indep_progs" rel="section" title="3.1 Programs using the default python">
<link href="ch-programs.html#s-version_dep_progs" rel="section" title="3.2 Programs Using a Particular Python Version">
<link href="ch-embed.html#s-build_embedded" rel="section" title="4.1 Building Embedded Programs">
<link href="ch-embed.html#s-embedded_deps" rel="section" title="4.2 Embedded Python Dependencies">
<link href="ap-packaging_tools.html#s-distutils" rel="section" title="B.1 distutils">
<link href="ap-packaging_tools.html#s-pysupport" rel="section" title="B.2 python-support (deprecated)">
<link href="ap-packaging_tools.html#s-pycentral" rel="section" title="B.3 python-central (deprecated)">
<link href="ap-packaging_tools.html#s-cdbs" rel="section" title="B.4 CDBS">
<link href="ap-packaging_tools.html#s-dh_python2_3" rel="section" title="B.5 dh_python2 and dh_python3">
<link href="ch-python.html#s-interpreter_name" rel="subsection" title="1.4.1 Interpreter Name">
<link href="ch-python.html#s-interpreter_loc" rel="subsection" title="1.4.2 Interpreter Location">
<link href="ch-programs.html#s-current_version_progs" rel="subsection" title="3.1.1 Programs Shipping Private Modules">
</head>
<body>
<p><a name="ap-build_dependencies"></a></p>
<hr>
<p>
[ <a href="ch-other.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch-python.html">1</a> ]
[ <a href="ch-module_packages.html">2</a> ]
[ <a href="ch-programs.html">3</a> ]
[ <a href="ch-embed.html">4</a> ]
[ <a href="ch-other.html">5</a> ]
[ A ]
[ <a href="ap-packaging_tools.html">B</a> ]
[ <a href="ap-upgrade.html">C</a> ]
[ <a href="ap-packaging_tools.html">next</a> ]
</p>
<hr>
<h1>
Debian Python Policy
<br>Appendix A - Build Dependencies</h1>
<hr>
<p>
Build dependencies for Python dependent packages must be declared for every
Python version that the package is built for. The <code>python-all-dev</code>
should be used when building extensions for any or all Python versions. To
build for a specific version or versions, Build-Depend on
<code>python<var>X</var>.<var>Y</var>-dev</code>.
</p>
<p>
Some applications and pure Python modules may be able to build-depend only on
<code>python</code> or <code>python-all</code> and not require the -dev
packages. Packages that do not require the -dev packages must not build-depend
on them.
</p>
<p>
Build-Depend on at least:
</p>
<pre>
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: python2.6-dev (>= 2.6-1)
Build-Depends: python-dev (>= 2.6.6-9)
Build-Depends: python-all-dev
Build-Depends: python3-all-dev (>= 3.2)
</pre>
<p>
If you use either <code>python-support</code> or <code>python-central</code>
you must additionally Build-Depend on those.
</p>
<hr>
<p>
[ <a href="ch-other.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch-python.html">1</a> ]
[ <a href="ch-module_packages.html">2</a> ]
[ <a href="ch-programs.html">3</a> ]
[ <a href="ch-embed.html">4</a> ]
[ <a href="ch-other.html">5</a> ]
[ A ]
[ <a href="ap-packaging_tools.html">B</a> ]
[ <a href="ap-upgrade.html">C</a> ]
[ <a href="ap-packaging_tools.html">next</a> ]
</p>
<hr>
<p>
Debian Python Policy
</p>
<address>
version 0.9.4.2<br>
<br>
Neil Schemenauer <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Matthias Klose <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Gregor Hoffleit <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Josselin Mouette <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Joe Wreschnig <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Loïc Minier <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Scott Kitterman <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
<br>
</address>
<hr>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Debian Python Policy - Build Dependencies</title>
<link href="index.html" rel="start">
<link href="ch-other.html" rel="prev">
<link href="ap-packaging_tools.html" rel="next">
<link href="index.html#contents" rel="contents">
<link href="index.html#copyright" rel="copyright">
<link href="ch-python.html" rel="chapter" title="1 Python Packaging">
<link href="ch-module_packages.html" rel="chapter" title="2 Packaged Modules">
<link href="ch-programs.html" rel="chapter" title="3 Python Programs">
<link href="ch-embed.html" rel="chapter" title="4 Programs Embedding Python">
<link href="ch-other.html" rel="chapter" title="5 Interaction with Locally Installed Python Versions">
<link href="ap-build_dependencies.html" rel="appendix" title="A Build Dependencies">
<link href="ap-packaging_tools.html" rel="appendix" title="B Packaging Tools">
<link href="ap-upgrade.html" rel="appendix" title="C Upgrade Procedure">
<link href="ch-python.html#s-versions" rel="section" title="1.1 Versions">
<link href="ch-python.html#s-base" rel="section" title="1.2 Main packages">
<link href="ch-python.html#s-minimal" rel="section" title="1.3 Minimal packages">
<link href="ch-python.html#s-interpreter" rel="section" title="1.4 Python Interpreter">
<link href="ch-python.html#s-paths" rel="section" title="1.5 Module Path">
<link href="ch-python.html#s-runtimes_hooks" rel="section" title="1.6 Hooks for updates to installed runtimes">
<link href="ch-python.html#s-docs" rel="section" title="1.7 Documentation">
<link href="ch-module_packages.html#s2.1" rel="section" title="2.1 Types of Python Modules">
<link href="ch-module_packages.html#s-package_names" rel="section" title="2.2 Module Package Names">
<link href="ch-module_packages.html#s-specifying_versions" rel="section" title="2.3 Specifying Supported Versions">
<link href="ch-module_packages.html#s-dependencies" rel="section" title="2.4 Dependencies">
<link href="ch-module_packages.html#s-provides" rel="section" title="2.5 Provides">
<link href="ch-module_packages.html#s-byte_compilation" rel="section" title="2.6 Modules Byte-Compilation">
<link href="ch-programs.html#s-version_indep_progs" rel="section" title="3.1 Programs using the default python">
<link href="ch-programs.html#s-version_dep_progs" rel="section" title="3.2 Programs Using a Particular Python Version">
<link href="ch-embed.html#s-build_embedded" rel="section" title="4.1 Building Embedded Programs">
<link href="ch-embed.html#s-embedded_deps" rel="section" title="4.2 Embedded Python Dependencies">
<link href="ap-packaging_tools.html#s-distutils" rel="section" title="B.1 distutils">
<link href="ap-packaging_tools.html#s-pysupport" rel="section" title="B.2 python-support (deprecated)">
<link href="ap-packaging_tools.html#s-pycentral" rel="section" title="B.3 python-central (deprecated)">
<link href="ap-packaging_tools.html#s-cdbs" rel="section" title="B.4 CDBS">
<link href="ap-packaging_tools.html#s-dh_python2_3" rel="section" title="B.5 dh_python2 and dh_python3">
<link href="ch-python.html#s-interpreter_name" rel="subsection" title="1.4.1 Interpreter Name">
<link href="ch-python.html#s-interpreter_loc" rel="subsection" title="1.4.2 Interpreter Location">
<link href="ch-programs.html#s-current_version_progs" rel="subsection" title="3.1.1 Programs Shipping Private Modules">
</head>
<body>
<p><a name="ap-build_dependencies"></a></p>
<hr>
<p>
[ <a href="ch-other.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch-python.html">1</a> ]
[ <a href="ch-module_packages.html">2</a> ]
[ <a href="ch-programs.html">3</a> ]
[ <a href="ch-embed.html">4</a> ]
[ <a href="ch-other.html">5</a> ]
[ A ]
[ <a href="ap-packaging_tools.html">B</a> ]
[ <a href="ap-upgrade.html">C</a> ]
[ <a href="ap-packaging_tools.html">next</a> ]
</p>
<hr>
<h1>
Debian Python Policy
<br>Appendix A - Build Dependencies</h1>
<hr>
<p>
Build dependencies for Python dependent packages must be declared for every
Python version that the package is built for. The <code>python-all-dev</code>
should be used when building extensions for any or all Python versions. To
build for a specific version or versions, Build-Depend on
<code>python<var>X</var>.<var>Y</var>-dev</code>.
</p>
<p>
Some applications and pure Python modules may be able to build-depend only on
<code>python</code> or <code>python-all</code> and not require the -dev
packages. Packages that do not require the -dev packages must not build-depend
on them.
</p>
<p>
Build-Depend on at least:
</p>
<pre>
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: python2.6-dev (>= 2.6-1)
Build-Depends: python-dev (>= 2.6.6-9)
Build-Depends: python-all-dev
Build-Depends: python3-all-dev (>= 3.2)
</pre>
<p>
If you use either <code>python-support</code> or <code>python-central</code>
you must additionally Build-Depend on those.
</p>
<hr>
<p>
[ <a href="ch-other.html">previous</a> ]
[ <a href="index.html#contents">Contents</a> ]
[ <a href="ch-python.html">1</a> ]
[ <a href="ch-module_packages.html">2</a> ]
[ <a href="ch-programs.html">3</a> ]
[ <a href="ch-embed.html">4</a> ]
[ <a href="ch-other.html">5</a> ]
[ A ]
[ <a href="ap-packaging_tools.html">B</a> ]
[ <a href="ap-upgrade.html">C</a> ]
[ <a href="ap-packaging_tools.html">next</a> ]
</p>
<hr>
<p>
Debian Python Policy
</p>
<address>
version 0.9.4.2<br>
<br>
Neil Schemenauer <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Matthias Klose <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Gregor Hoffleit <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Josselin Mouette <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Joe Wreschnig <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Loïc Minier <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
Scott Kitterman <code><a href="mailto:[email protected]">mailto:[email protected]</a></code><br>
<br>
</address>
<hr>
</body>
</html>