A few docs fixes

This commit is contained in:
Joe Rickerby
2021-01-22 19:16:32 +00:00
parent d87b589791
commit 07f972f6d3
2 changed files with 21 additions and 20 deletions
+20 -19
View File
@@ -276,20 +276,18 @@ CIBW_BEFORE_BUILD: "{package}/script/prepare_for_build.sh"
!!! note !!! note
If you need dependencies installed for the build, we recommend using pyproject.toml. This is an example pyproject.toml file: If you need dependencies installed for the build, we recommend using pyproject.toml. This is an example pyproject.toml file:
```toml [build-system]
[build-system] requires = [
requires = [ "setuptools>=42",
"setuptools>=42", "wheel",
"wheel", "Cython",
"Cython", "numpy==1.11.3; python_version<='3.6'",
"numpy==1.11.3; python_version<='3.6'", "numpy==1.14.5; python_version=='3.7'",
"numpy==1.14.5; python_version=='3.7'", "numpy==1.17.3; python_version=='3.8'",
"numpy==1.17.3; python_version=='3.8'", "numpy==1.19.4; python_version>='3.9'",
"numpy==1.19.4; python_version>='3.9'", ]
]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
```
This [PEP 517][]/[PEP 518][] style build allows you to completely control the This [PEP 517][]/[PEP 518][] style build allows you to completely control the
build environment in cibuildwheel, [PyPA-build][], and pip, doesn't force build environment in cibuildwheel, [PyPA-build][], and pip, doesn't force
@@ -554,7 +552,7 @@ CIBW_BUILD_VERBOSITY: 1
```text ```text
usage: cibuildwheel [-h] [--platform {auto,linux,macos,windows}] usage: cibuildwheel [-h] [--platform {auto,linux,macos,windows}]
[--archs ARCHS] [--output-dir OUTPUT_DIR] [--archs ARCHS] [--output-dir OUTPUT_DIR]
[--print-build-identifiers] [--print-build-identifiers] [--allow-empty]
[package_dir] [package_dir]
Build wheels for all the platforms. Build wheels for all the platforms.
@@ -577,16 +575,19 @@ optional arguments:
you need to run in Windows, and it will build and test you need to run in Windows, and it will build and test
for all versions of Python. Default: auto. for all versions of Python. Default: auto.
--archs ARCHS Comma-separated list of CPU architectures to build --archs ARCHS Comma-separated list of CPU architectures to build
for. If unspecified, builds the architectures natively for. When set to 'auto', builds the architectures
supported on this machine. Set this option to build an natively supported on this machine. Set this option to
architecture via emulation, for example, using build an architecture via emulation, for example,
binfmt_misc and qemu. Default: auto Choices: auto, using binfmt_misc and QEMU. Default: auto. Choices:
x86_64, i686, aarch64, ppc64le, s390x, x86, AMD64 auto, native, all, x86_64, i686, aarch64, ppc64le,
s390x, x86, AMD64
--output-dir OUTPUT_DIR --output-dir OUTPUT_DIR
Destination folder for the wheels. Destination folder for the wheels.
--print-build-identifiers --print-build-identifiers
Print the build identifiers matched by the current Print the build identifiers matched by the current
invocation and exit. invocation and exit.
--allow-empty Do not report an error code if the build does not
match any wheels.
``` ```
<style> <style>
+1 -1
View File
@@ -44,7 +44,7 @@ To build Linux, Mac, and Windows wheels on Travis CI, create a `.travis.yml` fil
{% include "../examples/travis-ci-minimal.yml" %} {% include "../examples/travis-ci-minimal.yml" %}
``` ```
Note that building Windows Python 2.7 wheels on Travis is unsupported unless using a newer compiler [via a workaround](cpp-standards.md). Note that building Windows Python 2.7 wheels on Travis is unsupported unless using a newer compiler [via a workaround](cpp_standards.md).
Commit this file, enable building of your repo on Travis CI, and push. Commit this file, enable building of your repo on Travis CI, and push.