Skip to content

Commit

Permalink
Add documentation for CIBW_BEFORE_BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Apr 10, 2017
1 parent 89c8735 commit 2c0d6e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ Space-separated list of dependencies required for running the tests.
Example: `pytest`
Example: `nose==1.3.7 moto==0.4.31`

| Environment variable: `CIBW_BEFORE_BUILD`
| ---

Optional.

Shell command to run before building the wheel. This option allows you to run a command in **each** Python environment before the `pip wheel` command. This is useful if you need to set up some dependency so it's available during the build.

The active Python binary can be accessed using `{python}`, and pip with `{pip}`. These are useful when you need to write `python3` or `pip3` on a Python 3.x build.

Example: `{pip} install pybind11`

Platform-specific variants also available:
`CIBW_BEFORE_BUILD_MACOS` | `CIBW_BEFORE_BUILD_WINDOWS` | `CIBW_BEFORE_BUILD_LINUX`

| Environment variable: `CIBW_SKIP` | 馃敹 coming soon 馃敹
| --- | ---

Expand Down

0 comments on commit 2c0d6e3

Please sign in to comment.