Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Add mnylinux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 8, 2021
1 parent 13184e6 commit ca2696d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions azure-pipelines.yml
Expand Up @@ -45,6 +45,14 @@ jobs:
displayName: 'Runs Unit Tests'
- script: python -u setup.py bdist_wheel
displayName: 'Build Package'
- script: |
python -m pip install cibuildwheel
export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014"
export CIBW_BEFORE_BUILD="pip install ."
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper"
export CIBW_BUILD="cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64"
python -m cibuildwheel --output-dir dist/wheelhouse --platform linux
displayName: 'Build Package manylinux2014'
#- script: python -u setup.py build_sphinx
# displayName: 'Builds Documentation'
- task: PublishPipelineArtifact@0
Expand Down Expand Up @@ -102,7 +110,49 @@ jobs:
displayName: 'Runs Unit Tests'
- script: python -u setup.py bdist_wheel
displayName: 'Build Package'
- script: |
python -m pip install cibuildwheel
export CIBW_BEFORE_BUILD="pip install ."
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper"
export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64"
python -m cibuildwheel --output-dir dist/wheelhouse
displayName: 'Build Package many'
- task: PublishPipelineArtifact@0
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'wheel-mac-$(python.version)'
targetPath: 'dist'

- job: 'TestWindows'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python39-Linux:
python.version: '3.9'
maxParallel: 3
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: pip install -r requirements.txt
displayName: 'Install Requirements'
- script: python -c "import platform;print(platform.version())"
displayName: 'Platform'
- script: |
python -u setup.py bdist_wheel
displayName: 'Build Package'
- script: |
python -m pip install cibuildwheel
set CIBW_BEFORE_BUILD=pip install .
set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper
set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64 cp39-win_amd64
python -m cibuildwheel --output-dir dist/wheelhouse
displayName: 'Build Package many'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'wheel-linux-$(python.version)'
targetPath: 'dist'

0 comments on commit ca2696d

Please sign in to comment.