Skip to content

Commit 4139a5f

Browse files
authored
v2022.12.24 (#5)
* v2022.12.24 * v2022.12.24
1 parent 54c5fb3 commit 4139a5f

34 files changed

+754
-688
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "imagecodecs_src"]
22
path = imagecodecs_src
33
url = https://github.com/cgohlke/imagecodecs
4-
branch = master
4+
branch = v2022.12.24

azure-pipelines.yaml

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
variables:
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

1516
stages:
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

build_utils/Dockerfile

Lines changed: 0 additions & 44 deletions
This file was deleted.

build_utils/Dockerfile_2014

Lines changed: 0 additions & 38 deletions
This file was deleted.

build_utils/Dockerfile_i686

Lines changed: 0 additions & 47 deletions
This file was deleted.

build_utils/Dockerfile_manylinux2014_aarch64

Lines changed: 0 additions & 39 deletions
This file was deleted.

build_utils/Dockerfile_manylinux2014_i686

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM quay.io/pypa/manylinux2014_i686
1+
# https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/pinned_docker_images.cfg
2+
3+
FROM quay.io/pypa/manylinux2014_i686:2022-11-27-b2d7fda
4+
ARG build=1
25
WORKDIR /opt/imagecodecs/build_utils
36

47
COPY install_cmake.sh .
@@ -11,21 +14,20 @@ COPY install_ninja.sh .
1114
RUN chmod u+x ./install_ninja.sh && ./install_ninja.sh
1215

1316
COPY *patch /opt/imagecodecs/build_utils/
17+
COPY Makefile_jxrlib /opt/imagecodecs/build_utils/
1418

1519
COPY docker_prepare_manylinux2014_i686.sh .
1620
RUN chmod u+x ./docker_prepare_manylinux2014_i686.sh && ./docker_prepare_manylinux2014_i686.sh
1721

1822
COPY download_libraries.sh .
1923
RUN chmod u+x ./download_libraries.sh && ./download_libraries.sh
2024

21-
COPY patch_dir/ patch_dir/
22-
2325
ENV SKIP_OMP 0
2426

2527
COPY build_libraries.sh .
2628
RUN chmod u+x ./build_libraries.sh && ./build_libraries.sh
2729

28-
FROM quay.io/pypa/manylinux2014_i686
30+
FROM quay.io/pypa/manylinux2014_i686:2022-11-27-b2d7fda
2931
WORKDIR /opt/imagecodecs/build_utils
3032

3133
RUN mkdir /opt/imagecodecs/build_utils/libs_build

build_utils/Dockerfile_manylinux2014_x86_64

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
FROM quay.io/pypa/manylinux2014_x86_64
1+
# https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/pinned_docker_images.cfg
2+
3+
FROM quay.io/pypa/manylinux2014_x86_64:2022-11-27-b2d7fda
4+
ARG build=1
25
WORKDIR /opt/imagecodecs/build_utils
36

47
COPY install_nasm.sh .
58
RUN chmod u+x ./install_nasm.sh && ./install_nasm.sh
69

710
COPY *patch /opt/imagecodecs/build_utils/
11+
COPY Makefile_jxrlib /opt/imagecodecs/build_utils/
812

913
COPY docker_prepare_manylinux2014_x86_64.sh .
1014
RUN chmod u+x ./docker_prepare_manylinux2014_x86_64.sh && ./docker_prepare_manylinux2014_x86_64.sh
1115

1216
COPY download_libraries.sh .
1317
RUN chmod u+x ./download_libraries.sh && ./download_libraries.sh
1418

15-
COPY patch_dir/ patch_dir/
16-
1719
COPY build_libraries.sh .
1820
RUN chmod u+x ./build_libraries.sh && ./build_libraries.sh
1921

20-
FROM quay.io/pypa/manylinux2014_x86_64
22+
FROM quay.io/pypa/manylinux2014_x86_64:2022-11-27-b2d7fda
2123
WORKDIR /opt/imagecodecs/build_utils
2224

2325
RUN mkdir /opt/imagecodecs/build_utils/libs_build

0 commit comments

Comments
 (0)