From 061ea627e2fe9870f547a4c8a56ff7b8887ab8c2 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 26 Aug 2023 19:47:49 +0100 Subject: [PATCH] Add docs --- docs/options.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/options.md b/docs/options.md index 8df4e8f2..b597684c 100644 --- a/docs/options.md +++ b/docs/options.md @@ -504,9 +504,19 @@ This option can also be set using the [command-line option](#command-line) `--pr ### `CIBW_BUILD_FRONTEND` {: #build-frontend} > Set the tool to use to build, either "pip" (default for now) or "build" -Choose which build backend to use. Can either be "pip", which will run +Options: + +- `pip[;args: ...]` +- `build[;args: ...]` + +Default: `pip` + +Choose which build frontend to use. Can either be "pip", which will run `python -m pip wheel`, or "build", which will run `python -m build --wheel`. +You can specify extra arguments to pass to `pip wheel` or `build` using the +optional `args` option. + !!! tip Until v2.0.0, [pip] was the only way to build wheels, and is still the default. However, we expect that at some point in the future, cibuildwheel @@ -526,6 +536,9 @@ Choose which build backend to use. Can either be "pip", which will run # Ensure pip is used even if the default changes in the future CIBW_BUILD_FRONTEND: "pip" + + # supply an extra argument to 'pip wheel' + CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation" ``` !!! tab examples "pyproject.toml" @@ -537,6 +550,9 @@ Choose which build backend to use. Can either be "pip", which will run # Ensure pip is used even if the default changes in the future build-frontend = "pip" + + # supply an extra argument to 'pip wheel' + build-frontend = { name = "pip", args = ["--no-build-isolation"] } ``` ### `CIBW_CONFIG_SETTINGS` {: #config-settings}