Merge pull request #1149 from pypa/pip-option-doc
Document use of pip options through environment variables
This commit is contained in:
@@ -553,6 +553,10 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
# Supply options to `pip` to affect how it downloads dependencies
|
# Supply options to `pip` to affect how it downloads dependencies
|
||||||
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.myorg.com/simple
|
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.myorg.com/simple
|
||||||
|
|
||||||
|
# Any pip command-line options can be set using the PIP_ prefix
|
||||||
|
# https://pip.pypa.io/en/stable/topics/configuration/#environment-variables
|
||||||
|
CIBW_ENVIRONMENT: PIP_GLOBAL_OPTION="build_ext -j4"
|
||||||
|
|
||||||
# Set two flags on linux only
|
# Set two flags on linux only
|
||||||
CIBW_ENVIRONMENT_LINUX: BUILD_TIME="$(date)" SAMPLE_TEXT="sample text"
|
CIBW_ENVIRONMENT_LINUX: BUILD_TIME="$(date)" SAMPLE_TEXT="sample text"
|
||||||
```
|
```
|
||||||
@@ -582,6 +586,10 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
# Supply options to `pip` to affect how it downloads dependencies
|
# Supply options to `pip` to affect how it downloads dependencies
|
||||||
environment = { PIP_EXTRA_INDEX_URL="https://pypi.myorg.com/simple" }
|
environment = { PIP_EXTRA_INDEX_URL="https://pypi.myorg.com/simple" }
|
||||||
|
|
||||||
|
# Any pip command-line option can be set using the PIP_ prefix
|
||||||
|
# https://pip.pypa.io/en/stable/topics/configuration/#environment-variables
|
||||||
|
environment = { PIP_GLOBAL_OPTION="build_ext -j4" }
|
||||||
|
|
||||||
# Set two flags on linux only
|
# Set two flags on linux only
|
||||||
[tool.cibuildwheel.linux]
|
[tool.cibuildwheel.linux]
|
||||||
environment = { BUILD_TIME="$(date)", SAMPLE_TEXT="sample text" }
|
environment = { BUILD_TIME="$(date)", SAMPLE_TEXT="sample text" }
|
||||||
|
|||||||
Reference in New Issue
Block a user