-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate bdist wheels for musllinux_1_1 (#6025)
- Loading branch information
Showing
3 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,21 +86,31 @@ stages: | |
artifactName: 'UbuntuDoc' | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
|
||
- job: Manylinux | ||
displayName: "Manylinux build" | ||
- job: LinuxBuilds | ||
strategy: | ||
matrix: | ||
manyLinux: | ||
name: ManyLinux | ||
image: "quay.io/pypa/manylinux2010_x86_64:latest" | ||
python: "/opt/python/cp37-cp37m/bin/python" | ||
muslLinux: | ||
name: MuslLinux | ||
image: "quay.io/pypa/musllinux_1_1_x86_64:latest" | ||
python: "/opt/python/cp310-cp310/bin/python" | ||
displayName: "$(name) build" | ||
pool: | ||
vmImage: "Ubuntu-18.04" | ||
container: "quay.io/pypa/manylinux2010_x86_64:latest" | ||
container: $(image) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NikolajBjorner
Contributor
|
||
variables: | ||
python: "/opt/python/cp37-cp37m/bin/python" | ||
python: $(python) | ||
steps: | ||
- script: $(python) scripts/mk_unix_dist.py --nodotnet --nojava | ||
- script: git clone https://github.com/z3prover/z3test z3test | ||
- script: $(python) z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2 | ||
- script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/ | ||
- task: PublishPipelineArtifact@0 | ||
inputs: | ||
artifactName: 'Manylinux' | ||
artifactName: '$(name)Build' | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
|
||
- job: Windows32 | ||
|
@@ -395,6 +405,11 @@ stages: | |
inputs: | ||
artifactName: 'Manylinux' | ||
targetPath: $(Agent.TempDirectory) | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: 'Download MuslLinux Build' | ||
inputs: | ||
artifact: 'MuslLinuxBuild' | ||
path: $(Agent.TempDirectory) | ||
- task: DownloadPipelineArtifact@2 | ||
inputs: | ||
artifactName: 'Mac' | ||
|
@@ -405,13 +420,15 @@ stages: | |
targetPath: $(Agent.TempDirectory) | ||
- script: cd $(Agent.TempDirectory); mkdir osx-x64-bin; cd osx-x64-bin; unzip ../*x64-osx*.zip | ||
- script: cd $(Agent.TempDirectory); mkdir osx-arm64-bin; cd osx-arm64-bin; unzip ../*arm64-osx*.zip | ||
- script: cd $(Agent.TempDirectory); mkdir linux-bin; cd linux-bin; unzip ../*glibc*.zip | ||
- script: cd $(Agent.TempDirectory); mkdir libc-bin; cd libc-bin; unzip ../*glibc*.zip | ||
- script: cd $(Agent.TempDirectory); mkdir musl-bin; cd musl-bin; unzip ../*-linux.zip | ||
- script: cd $(Agent.TempDirectory); mkdir win32-bin; cd win32-bin; unzip ../*x86-win*.zip | ||
- script: cd $(Agent.TempDirectory); mkdir win64-bin; cd win64-bin; unzip ../*x64-win*.zip | ||
- script: python3 -m pip install --user -U setuptools wheel | ||
- script: cd src/api/python; python3 setup.py sdist | ||
# take a look at this PREMIUM HACK I came up with to get around the fact that the azure variable syntax overloads the bash syntax for subshells | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/linux-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/libc-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/musl-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/win32-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/win64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
- script: cd src/api/python; echo $(Agent.TempDirectory)/osx-x64-bin/* | xargs printf 'PACKAGE_FROM_RELEASE=%s\n' | xargs -I '{}' env '{}' python3 setup.py bdist_wheel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The nightly is broken and complains about some issue resolving $(image).