11variables :
2+ IMAGECODECS_CIBW : 1
3+ CIBW_MANYLINUX_X86_64_IMAGE : cgohlke/imagecodecs_manylinux2014_x86_64:2022.12.22
4+ CIBW_MANYLINUX_I686_IMAGE : cgohlke/imagecodecs_manylinux2014_i686:2022.12.22
5+ CIBW_MANYLINUX_PYPY_X86_64_IMAGE : cgohlke/imagecodecs_manylinux2014_x86_64:2022.12.22
6+ CIBW_ENVIRONMENT : " AEC_TEST_EXTENDED=1 IMAGECODECS_CIBW=1"
7+ CIBW_BEFORE_BUILD : " pip install oldest-supported-numpy cython auditwheel==4.0.0"
28 CIBW_TEST_COMMAND : python -m pytest {project}/imagecodecs_src/tests/ --timeout=300
39 CIBW_TEST_REQUIRES : -r requirements_azure.txt
4- CIBW_MANYLINUX_X86_64_IMAGE : cgohlke/imagecodecs_manylinux2014_x86_64:2021.5.20
5- CIBW_MANYLINUX_I686_IMAGE : cgohlke/imagecodecs_manylinux2014_i686:2021.5.20
6- CIBW_MANYLINUX_PYPY_X86_64_IMAGE : cgohlke/imagecodecs_manylinux2014_x86_64:2021.5.20
7- CIBW_BEFORE_BUILD : " pip install build_requires_numpy cython"
10+ AEC_TEST_EXTENDED : 1
811 BASE_PATH : $(Build.Repository.LocalPath)
912 LD_LIBRARY_PATH : $(Build.Repository.LocalPath)/build_utils/libs_build/lib
10- AEC_TEST_EXTENDED : 1
11- CIBW_ENVIRONMENT : " AEC_TEST_EXTENDED=1"
1213 MACOSX_RPATH : $LD_LIBRARY_PATH
13- CIBW_BUILD : " cp3[7-9 ]*"
14+ # CIBW_BUILD: "cp3[8-10 ]*"
1415
1516stages :
1617 - stage : GetLibsSrc
1718 jobs :
1819 - job : linux
19- pool : { vmImage: "Ubuntu-20 .04" }
20+ pool : { vmImage: "Ubuntu-22 .04" }
2021 steps :
2122 - bash : bash build_utils/download_libraries.sh
2223 displayName : " Download libraries"
@@ -28,9 +29,8 @@ stages:
2829 dependsOn : [GetLibsSrc]
2930 jobs :
3031 - job : linux_test_build
31- pool : { vmImage: "Ubuntu-20 .04" }
32+ pool : { vmImage: "Ubuntu-22 .04" }
3233 variables :
33- CIBUILDWHEEL : 1
3434 IMCD_SKIP_JPEG12 : 1
3535 steps :
3636 - checkout : self
@@ -73,13 +73,13 @@ stages:
7373 dependsOn : [GetLibsSrc]
7474 jobs :
7575 - job : macos_test_build
76- pool : { vmImage: "macos-10.15 " }
76+ pool : { vmImage: "macos-11 " }
7777 timeoutInMinutes : 100
7878 variables :
79+ CIBW_SKIP : " pp*"
7980 LIBRARY_PATH : $(LD_LIBRARY_PATH)
8081 LD_RUNPATH_SEARCH_PATH : $(LD_LIBRARY_PATH)
8182 DYLD_FALLBACK_LIBRARY_PATH : $(LD_LIBRARY_PATH)
82- CIBUILDWHEEL : 1
8383 SKIP_OMP : 1
8484 IMCD_SKIP_JPEG12 : 1
8585 CC : clang
@@ -124,23 +124,17 @@ stages:
124124 - bash : pip install -e ./imagecodecs_src
125125 displayName : " Install project"
126126
127- # - bash: tar -czf imagecodecs_src.tar.gz imagecodecs_src/
128- #
129- # - task: PublishBuildArtifacts@1
130- # inputs:
131- # pathToPublish: imagecodecs_src.tar.gz
132- # artifactName: build_utils
127+ # - bash: pip install ${CIBW_TEST_REQUIRES}
128+ # displayName: "install test dependencies"
133129
134- - bash : pip install ${CIBW_TEST_REQUIRES}
135- displayName : " install test dependencies"
136-
137- - script : pytest imagecodecs_src/tests --timeout=300
138- displayName : " run test"
130+ # - script: pytest imagecodecs_src/tests --timeout=300
131+ # displayName: "run test"
139132
140133 - job : macos_wheel
141- pool : { vmImage: "macos-10.15 " }
134+ pool : { vmImage: "macos-11 " }
142135 timeoutInMinutes : 150
143136 variables :
137+ CIBW_SKIP : " pp* cp37*"
144138 LIBRARY_PATH : $(LD_LIBRARY_PATH)
145139 DYLD_LIBRARY_PATH : $(LD_LIBRARY_PATH)
146140 LD_RUNPATH_SEARCH_PATH : $(LD_LIBRARY_PATH)
@@ -179,15 +173,6 @@ stages:
179173 - bash : bash build_utils/fix_macos_lib.sh
180174 displayName : " Fix libraries load path"
181175
182- # - bash: tar -czf build_utils.tar.gz build_utils/
183- #
184- # - task: PublishBuildArtifacts@1
185- # inputs:
186- # pathToPublish: build_utils.tar.gz
187- # artifactName: build_utils
188-
189- # - bash: otool -l build_utils/libs_build/lib/libzfp.0.5.5.dylib
190-
191176 - script : |
192177 python -m pip install --upgrade pip
193178 python -m pip install numpy cython
@@ -202,30 +187,25 @@ stages:
202187 pathToPublish : wheelhouse
203188 artifactName : wheels
204189
205- - bash : brew install openblas
206- displayName : " install numpy dependency for pypy"
207-
208- - script : OPENBLAS="$(brew --prefix openblas)" CIBW_BUILD="pp37*" cibuildwheel ./imagecodecs_src
209- displayName : " cibuildwheel"
210-
211- - task : PublishBuildArtifacts@1
212- inputs :
213- pathToPublish : wheelhouse
214- artifactName : wheels
215190 - stage : BuildManylinux
216191 dependsOn : []
217192 jobs :
218193 - job : linux_wheel
194+ timeoutInMinutes : 150
219195 strategy :
220196 matrix :
221197 manylinux2014_x86_64 :
222- CIBW_SKIP : " *686"
223- CIBW_BEFORE_TEST : " pip install scikit_build; pip install cmake"
198+ CIBW_SKIP : " *686 pp37* cp37* *-musllinux_x86_64"
224199 manylinux2014_i686 :
225- CIBW_SKIP : " *64"
226- CIBW_BEFORE_TEST : " pip install scikit_build; pip install cmake"
227-
200+ CIBW_SKIP : " *64 pp* cp37* cp310* *-musllinux_i686"
228201 pool : { vmImage: "Ubuntu-20.04" }
202+ variables :
203+ # work around ... to "manylinux2014_x86_64" ABI because of the presence of too-recent versioned symbols
204+ # use auditwheel=4.0.0
205+ # CIBW_REPAIR_WHEEL_COMMAND: "python -m auditwheel --verbose repair -w {dest_dir} {wheel}"
206+ CIBW_REPAIR_WHEEL_COMMAND : " python -m auditwheel repair -w {dest_dir} {wheel}"
207+ # snappy-devel is required for building python-snappy
208+ CIBW_BEFORE_TEST : " yum install -y snappy-devel;pip install scikit_build; pip install cmake"
229209 steps :
230210 - checkout : self
231211 submodules : true
0 commit comments