Update doc for AppVeyor on linux
This commit is contained in:
@@ -32,13 +32,13 @@ What does it do?
|
|||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
`cibuildwheel` currently works on **Travis CI** and **Azure Pipelines** to build wheels for all three supported platforms (Linux, macOS, Windows). On **CircleCI** Linux and macOS wheels can be built, and on **AppVeyor** Windows is supported.
|
`cibuildwheel` currently works on **Travis CI** and **Azure Pipelines** to build wheels for all three supported platforms (Linux, macOS, Windows). On **CircleCI** Linux and macOS wheels can be built, and on **AppVeyor** Linux and Windows are supported.
|
||||||
|
|
||||||
| | Linux | macOS | Windows |
|
| | Linux | macOS | Windows |
|
||||||
|-----------------|-------|-------|---------|
|
|-----------------|-------|-------|---------|
|
||||||
| Azure Pipelines | ✅ | ✅ | ✅ |
|
| Azure Pipelines | ✅ | ✅ | ✅ |
|
||||||
| Travis CI | ✅ | ✅ | ✅ |
|
| Travis CI | ✅ | ✅ | ✅ |
|
||||||
| AppVeyor | | | ✅ |
|
| AppVeyor | ✅ | | ✅ |
|
||||||
| CircleCI | ✅ | ✅ | |
|
| CircleCI | ✅ | ✅ | |
|
||||||
|
|
||||||
`cibuildwheel` is not intended to run on your development machine. Because it uses system Python from Python.org it will try to install packages globally - not what you expect from a build tool! Instead, isolated CI services like Travis CI, CircleCI, Azure Pipelines and AppVeyor are ideal.
|
`cibuildwheel` is not intended to run on your development machine. Because it uses system Python from Python.org it will try to install packages globally - not what you expect from a build tool! Instead, isolated CI services like Travis CI, CircleCI, Azure Pipelines and AppVeyor are ideal.
|
||||||
|
|||||||
+17
-10
@@ -11,7 +11,7 @@ Using Azure pipelines, you can build all three platforms on the same service. Cr
|
|||||||
jobs:
|
jobs:
|
||||||
- job: linux
|
- job: linux
|
||||||
pool: {vmImage: 'Ubuntu-16.04'}
|
pool: {vmImage: 'Ubuntu-16.04'}
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
inputs: {pathtoPublish: 'wheelhouse'}
|
inputs: {pathtoPublish: 'wheelhouse'}
|
||||||
- job: macos
|
- job: macos
|
||||||
pool: {vmImage: 'macOS-10.13'}
|
pool: {vmImage: 'macOS-10.13'}
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
inputs: {pathtoPublish: 'wheelhouse'}
|
inputs: {pathtoPublish: 'wheelhouse'}
|
||||||
- job: windows
|
- job: windows
|
||||||
pool: {vmImage: 'vs2017-win2016'}
|
pool: {vmImage: 'vs2017-win2016'}
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- script: choco install vcpython27 -f -y
|
- script: choco install vcpython27 -f -y
|
||||||
displayName: Install Visual C++ for Python 2.7
|
displayName: Install Visual C++ for Python 2.7
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
|
|
||||||
osx-wheels:
|
osx-wheels:
|
||||||
working_directory: ~/osx-wheels
|
working_directory: ~/osx-wheels
|
||||||
macos:
|
macos:
|
||||||
@@ -139,16 +139,23 @@ Commit this file, enable building of your repo on CircleCI, and push.
|
|||||||
|
|
||||||
CircleCI will store the built wheels for you - you can access them from the project console. Check out the CircleCI [docs](https://circleci.com/docs/2.0/configuration-reference/#section=configuration) for more info on this config file.
|
CircleCI will store the built wheels for you - you can access them from the project console. Check out the CircleCI [docs](https://circleci.com/docs/2.0/configuration-reference/#section=configuration) for more info on this config file.
|
||||||
|
|
||||||
# AppVeyor [windows] {: #appveyor}
|
# AppVeyor [linux/windows] {: #appveyor}
|
||||||
|
|
||||||
To build Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
|
To build Linux and Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
|
||||||
|
|
||||||
> appveyor.yml
|
> appveyor.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
image:
|
||||||
|
- Ubuntu
|
||||||
|
- Visual Studio 2015
|
||||||
build_script:
|
build_script:
|
||||||
- pip install cibuildwheel==1.0.0
|
# windows
|
||||||
- cibuildwheel --output-dir wheelhouse
|
- cmd: pip install cibuildwheel==1.0.0
|
||||||
|
- cmd: cibuildwheel --output-dir wheelhouse
|
||||||
|
# linux
|
||||||
|
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install cibuildwheel==1.0.0"
|
||||||
|
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m cibuildwheel --output-dir wheelhouse"
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: "wheelhouse\\*.whl"
|
- path: "wheelhouse\\*.whl"
|
||||||
name: Wheels
|
name: Wheels
|
||||||
@@ -162,7 +169,7 @@ For more info on this config file, check out the [docs](https://www.appveyor.com
|
|||||||
|
|
||||||
> ⚠️ Got an error? Check the [FAQ](faq.md).
|
> ⚠️ Got an error? Check the [FAQ](faq.md).
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
$('.toctree-l2 a, .rst-content h1').each(function(i, el) {
|
$('.toctree-l2 a, .rst-content h1').each(function(i, el) {
|
||||||
var text = $(el).text()
|
var text = $(el).text()
|
||||||
@@ -191,4 +198,4 @@ For more info on this config file, check out the [docs](https://www.appveyor.com
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user