Skip to content

Commit 25c02cb

Browse files
committed
[circle-mlir/infra] Bump h5py to 3.12.1 for Python 3.13 support
This commit bumps h5py package to version 3.12.1. This is the first version which supports Python 3.13. Changes has been tested with upgraded ONNX-MLIR and LLVM in order to compile with GCC 15.2.0 which is the default compiler on Ubuntu 25.04. Used tags for these projects: GIT_TAG_ONNXMLIR: 8524104871c9a5c23973753e0f99ea8b42e3c943 GIT_TAG_LLVMPROJ: 0c2701fe7fa002e1befc5f86c268a7964f96d286 ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent e58f9ba commit 25c02cb

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

circle-mlir/infra/docker/focal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ RUN ${WORK_DIR}/venv/bin/python3 -m pip install --upgrade pip setuptools
6060
RUN ${WORK_DIR}/venv/bin/python3 -m pip install numpy==${VER_NUMPY} torch==${VER_TORCH} \
6161
-f https://download.pytorch.org/whl/torch
6262
RUN ${WORK_DIR}/venv/bin/python3 -m pip install onnx==${VER_ONNX} onnxruntime==${VER_ONNXRUNTIME} \
63-
h5py==3.8.0 einops
63+
h5py==3.12.1 einops
6464

6565
# Download experimental patch file for onnx-mlir
6666

circle-mlir/infra/docker/jammy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN ${WORK_DIR}/venv/bin/python3 -m pip install --upgrade pip setuptools
5252
RUN ${WORK_DIR}/venv/bin/python3 -m pip install numpy==${VER_NUMPY} torch==${VER_TORCH} \
5353
-f https://download.pytorch.org/whl/torch
5454
RUN ${WORK_DIR}/venv/bin/python3 -m pip install onnx==${VER_ONNX} onnxruntime==${VER_ONNXRUNTIME} \
55-
h5py==3.8.0 einops
55+
h5py==3.12.1 einops
5656

5757
# Download experimental patch file for onnx-mlir
5858

circle-mlir/infra/docker/noble/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN ${WORK_DIR}/venv/bin/python3 -m pip install --upgrade pip setuptools
5252
RUN ${WORK_DIR}/venv/bin/python3 -m pip install numpy==${VER_NUMPY} torch==${VER_TORCH} \
5353
-f https://download.pytorch.org/whl/torch
5454
RUN ${WORK_DIR}/venv/bin/python3 -m pip install onnx==${VER_ONNX} onnxruntime==${VER_ONNXRUNTIME} \
55-
h5py==3.8.0 einops
55+
h5py==3.12.1 einops
5656

5757
# Download experimental patch file for onnx-mlir
5858

circle-mlir/infra/overlay/prepare-venv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ if [[ "$PYTHON_VERSION" == "3.10" ]]; then
6666
elif [[ "$PYTHON_VERSION" == "3.12" ]]; then
6767
# Ubuntu 24.04 is python3.12
6868
: # use as is
69+
elif [[ "$PYTHON_VERSION" == "3.13" ]]; then
70+
# Ubuntu 25.04 is python3.13
71+
: # use as is
6972
else
7073
echo "Error prepare-venv: Unsupported python version: $PYTHON_VERSION"
7174
exit 1
@@ -90,7 +93,7 @@ fi
9093
PYTHON_PACKAGES="torch==${VER_TORCH} "
9194
PYTHON_PACKAGES+="onnx==${VER_ONNX} "
9295
PYTHON_PACKAGES+="onnxruntime==${VER_ONNXRUNTIME} "
93-
PYTHON_PACKAGES+="h5py==3.8.0 "
96+
PYTHON_PACKAGES+="h5py==3.12.1 "
9497
PYTHON_PACKAGES+="einops "
9598
PYTHON_PACKAGES+="numpy==${VER_NUMPY} "
9699

0 commit comments

Comments
 (0)