File: build-dependencies.rst

package info (click to toggle)
python3-defaults 3.13.7-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 672 kB
  • sloc: python: 1,274; makefile: 391; sh: 107
file content (32 lines) | stat: -rw-r--r-- 1,162 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 :samp:`python{X}.{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)