Add an example of PATH customisation on Windows

On Windows you often find directories containing spaces. The relation
between quotes and escaping is not intuitive, see #765.
This commit is contained in:
Daniele Varrazzo
2021-07-18 17:19:41 +02:00
parent 356f81ca60
commit 51b021e08a
+4
View File
@@ -499,6 +499,10 @@ Platform-specific environment variables are also available:<br/>
# Append a directory to the PATH variable (this is expanded in the build environment)
CIBW_ENVIRONMENT: "PATH=$PATH:/usr/local/bin"
# Prepend a directory containing spaces on Windows.
CIBW_ENVIRONMENT_WINDOWS: >-
PATH="C:\\Program Files\\PostgreSQL\\13\\bin;$PATH"
# Set BUILD_TIME to the output of the `date` command
CIBW_ENVIRONMENT: "BUILD_TIME=$(date)"