Skip to content

Commit c7ac864

Browse files
reorder examples
1 parent 9b2f68e commit c7ac864

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/source/publish.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,17 @@ extra.
115115
These libraries are only installed on the host Linux machine.
116116
To install libraries or packages within the build environment, alter the
117117
``cibuildwheel`` configuration to add an install command before the build,
118-
such as by setting the ``CIBW_BEFORE_BUILD_MACOS`` environment variable:
118+
such as adding an entry to the ``tool.cibuildwheel`` table in ``pyproject.toml``:
119+
120+
.. code:: toml
121+
122+
[tool.cibuildwheel.linux]
123+
before-build = "apt install libfftw3-dev"
124+
125+
[tool.cibuildwheel.macos]
126+
before-build = "brew install fftw"
127+
128+
or by setting the ``CIBW_BEFORE_BUILD_MACOS`` environment variable:
119129

120130
.. code:: yaml
121131
@@ -131,16 +141,6 @@ extra.
131141
- cp3*-manylinux_x86_64
132142
- cp3*-macosx_x86_64
133143
134-
or by adding an entry to the ``tool.cibuildwheel`` table in ``pyproject.toml``:
135-
136-
.. code:: toml
137-
138-
[tool.cibuildwheel.linux]
139-
before-build = "apt install libfftw3-dev"
140-
141-
[tool.cibuildwheel.macos]
142-
before-build = "brew install fftw"
143-
144144
upload_to_pypi
145145
^^^^^^^^^^^^^^
146146

0 commit comments

Comments
 (0)