Skip to content

Commit

Permalink
arm fix llvmlite
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoDerp committed Jan 29, 2025
1 parent 8d28a88 commit 4340758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RUN uv venv && . .venv/bin/activate
RUN ln -s /usr/include/hdf5/serial /usr/include/hdf5/include && export HDF5_DIR=/usr/include/hdf5

# note, its a good idea to remove the "llvm-dev" package and "LLVM_CONFIG=/usr/bin/llvm-config pip3 install 'llvmlite>=0.43'" once the llvmlite package has been fixed in piwheels
RUN [[ "${TARGETARCH}" == "armhf" || "${TARGETARCH}" == "armv7" ]] && apt-get update && apt-get install -y --no-install-recommends llvm-dev && export LLVM_CONFIG=/usr/bin/llvm-config && uv pip install 'llvmlite' || echo "skipping llvm-dev install"
RUN [[ "${TARGETARCH}" == "armhf" || "${TARGETARCH}" == "armv7" ]] && apt-get update && apt-get install -y --no-install-recommends llvm-dev && export LLVM_CONFIG=/usr/bin/llvm-config && uv pip install 'llvmlite==0.43.0' || echo "skipping llvm-dev install"

# try, symlink apt cbc, to pulp cbc, in python directory (for 32bit)
RUN [[ "${TARGETARCH}" == "armhf" || "${TARGETARCH}" == "armv7" ]] && ln -sf /usr/bin/cbc /usr/local/lib/python3.11/dist-packages/pulp/solverdir/cbc/linux/32/cbc || echo "cbc symlink didnt work/not required"
Expand Down

0 comments on commit 4340758

Please sign in to comment.