File: pyproject_toml.rst

package info (click to toggle)
pyqt-builder 1.18.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 444 kB
  • sloc: python: 2,123; makefile: 18
file content (127 lines) | stat: -rw-r--r-- 5,032 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
:file:`pyproject.toml` Reference
================================

PyQt-builder adds the following keys to those `implemented by SIP
<https://python-sip.readthedocs.io/en/stable/pyproject_toml.html>`__.

.. note::
    Individual projects may also add their own project-specific keys.


``[tool.sip.builder]`` Section
------------------------------

Unless stated otherwise, all values are strings.  Unless stated otherwise, the
values of all list options may contain environment markers as defined in `PEP
508 <https://www.python.org/dev/peps/pep-0508/>`__.

**jobs**
    The integer value is the number of make jobs that will be run in parallel
    (on Linux and macOS).  There is also a corresponding command line option.

**make**
    The boolean value specifies if :program:`make` (or :program:`nmake` on
    Windows) is executed automatically.  By default it is executed
    automatically.  There is also a corresponding command line option for
    :program:`sip-build`.

**qmake**
    The value is the full path name of the :program:`qmake` executable.  By
    default it is assumed to be on :envvar:`PATH`.  There is also a
    corresponding command line option.

**qmake-settings**
    The value is a list of strings, usually of the form ``NAME += VALUE``, that
    are added to any :program:`qmake` :file:`.pro` file that is created.  There
    is also a corresponding command line option.

**spec**
    The value is passed as the ``-spec`` argument to :program:`qmake` whenever
    it is executed by the builder.  There is also a corresponding command line
    option.


``[tool.sip.project]`` Section
------------------------------

The key/values in this section apply to the project as a whole.  Unless stated
otherwise, all values are strings.  Unless stated otherwise, the values of all
list options may contain environment markers as defined in `PEP 508
<https://www.python.org/dev/peps/pep-0508/>`__.

**android-abis**
    The value is a list of target Android ABIs (e.g. armeabi-v7a, arm64-v8a).
    There is also a corresponding command line option.

**apple-universal2**
    The boolean value specifies that the project is built as an Apple universal
    package supporting both x86_64 and arm64 architectures.  The default is to
    build for the native architecture.  There is also a corresponding command
    line option.

**link-full-dll**
    The boolean value specifies if, on Windows, the full Python DLL should be
    linked against rather than the limited API DLL.  There is also a
    corresponding command line option.

**py-pylib-dir**
    The value is the name of the directory containing the target Python
    interpreter library.  By default this is determined dynamically from the
    Python installation.

**py-pylib-lib**
    The value is the name of the target Python interpreter library.  By default
    this is determined dynamically from the Python installation.

**py-pylib-shlib**
    The value is the name of the target Python interpreter library if it is a
    shared library.  By default this is determined dynamically from the Python
    installation.

**qml-debug**
    The boolean value specifies if the QML debugging infrastructure should be
    enabled.  There is also a corresponding command line option.

**tag-prefix**
    The value is the prefix of the timeline tag to use (with the Qt version
    automatically appended).  By default the value of the ``name`` key in the
    ``[tool.sip.metadata]`` section of :file:`pyproject.toml` is used with any
    leading ``Py`` removed.

**target-qt-dir**
    The value specifies the name of the directory where the Qt libraries will
    be found.  By default the location of the Qt libraries being built against
    is used.  If Qt libraries to be included by running :program:`pyqt-bundle`
    are to be used then the value should be :file:`Qt/lib`.  There is also a
    corresponding command line option for :program:`sip-wheel`.

**tests-dir**
    The value is the name of the directory, relative to the directory
    containing :file:`pyproject.toml`, containing any external test programs.
    The default value is :file:`config-tests`.


Bindings Sections
-----------------

Unless stated otherwise, all values are strings.  Unless stated otherwise, the
values of all list options may contain environment markers as defined in `PEP
508 <https://www.python.org/dev/peps/pep-0508/>`__.

**qmake-CONFIG**
    The value is a list of modifications to make to the ``CONFIG`` value in all
    generated :file:`.pro` files.  An element may start with ``-`` to specify
    that the value should be removed.

**qmake-QT**
    The value is a list of modifications to make to the ``QT`` value in all
    generated :file:`.pro` files.  An element may start with ``-`` to specify
    that the value should be removed.

**test-headers**
    The value is a list of :file:`.h` header files to include in any internal
    test program.

**test-statement**
    The value is a C++ statement that will be included in any internal test
    program.