From bddfb897e1df7aafd823f8bc6dacf9dbbac36b88 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 18 Dec 2024 09:24:08 -0700 Subject: [PATCH] Get hailo build working --- docker/hailo8l/Dockerfile | 2 ++ docker/hailo8l/install_hailort.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/hailo8l/Dockerfile b/docker/hailo8l/Dockerfile index 959e7692e..33b5b08f0 100644 --- a/docker/hailo8l/Dockerfile +++ b/docker/hailo8l/Dockerfile @@ -5,6 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive # Build Python wheels FROM wheels AS h8l-wheels +RUN python3 -m pip config set global.break-system-packages true COPY docker/main/requirements-wheels.txt /requirements-wheels.txt COPY docker/hailo8l/requirements-wheels-h8l.txt /requirements-wheels-h8l.txt @@ -30,6 +31,7 @@ COPY --from=hailort /hailo-wheels /deps/hailo-wheels COPY --from=hailort /rootfs/ / # Install the wheels +RUN python3 -m pip config set global.break-system-packages true RUN pip3 install -U /deps/h8l-wheels/*.whl RUN pip3 install -U /deps/hailo-wheels/*.whl diff --git a/docker/hailo8l/install_hailort.sh b/docker/hailo8l/install_hailort.sh index 62eba9611..efcc4f541 100755 --- a/docker/hailo8l/install_hailort.sh +++ b/docker/hailo8l/install_hailort.sh @@ -15,5 +15,5 @@ wget -qO- "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_ver mkdir -p /hailo-wheels -wget -P /hailo-wheels/ "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${hailo_version}-cp39-cp39-linux_${arch}.whl" +wget -P /hailo-wheels/ "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${hailo_version}-cp311-cp311-linux_${arch}.whl"