@@ -103,15 +103,15 @@ to it as the ``setup.py``\-style.
103
103
Here we define a new style of source tree based around the
104
104
``pyproject.toml`` file defined in PEP 518, extending the
105
105
``[build-system]`` table in that file with one additional key,
106
- ``build_backend ``. Here's an example of how it would look::
106
+ ``build-backend ``. Here's an example of how it would look::
107
107
108
108
[build-system]
109
109
# Defined by PEP 518:
110
110
requires = ["flit"]
111
111
# Defined by this PEP:
112
- build_backend = "flit.api:main"
112
+ build-backend = "flit.api:main"
113
113
114
- ``build_backend `` is a string naming a Python object that will be
114
+ ``build-backend `` is a string naming a Python object that will be
115
115
used to perform the build (see below for details). This is formatted
116
116
following the same ``module:object`` syntax as a ``setuptools`` entry
117
117
point. For instance, if the string is ``"flit.api:main"`` as in the
@@ -123,7 +123,7 @@ equivalent of::
123
123
124
124
It's also legal to leave out the ``:object`` part, e.g. ::
125
125
126
- build_backend = "flit.api"
126
+ build-backend = "flit.api"
127
127
128
128
which acts like::
129
129
@@ -141,11 +141,11 @@ And we import ``module_path`` and then lookup
141
141
``module_path.object_path`` (or just ``module_path`` if
142
142
``object_path`` is missing).
143
143
144
- If the ``pyproject.toml`` file is absent, or the ``build_backend ``
144
+ If the ``pyproject.toml`` file is absent, or the ``build-backend ``
145
145
key is missing, the source tree is not using this specification, and
146
146
tools should fall back to running ``setup.py``.
147
147
148
- Where the ``build_backend `` key exists, it takes precedence over
148
+ Where the ``build-backend `` key exists, it takes precedence over
149
149
``setup.py``, and source trees need not include ``setup.py`` at all.
150
150
Projects may still wish to include a ``setup.py`` for compatibility
151
151
with tools that do not use this spec.
0 commit comments