mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
- feat(compiler): python bindings - build: update docker image for python bindings - pin pybind11 to 2.6.2, 2.7 is not having correct include_dirs set (still a question why?) - using generated parser/printer
26 lines
1.1 KiB
Docker
26 lines
1.1 KiB
Docker
FROM ubuntu:latest
|
|
|
|
RUN apt-get update --fix-missing
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y curl cmake g++ build-essential python3 python3-pip python3-setuptools ninja-build git
|
|
RUN pip install numpy pybind11==2.6.2 PyYAML
|
|
RUN git clone --depth 1 https://github.com/llvm/llvm-project.git
|
|
ENV LLVM_PROJECT=$PWD/llvm-project
|
|
RUN cd ${LLVM_PROJECT} && git log -1
|
|
RUN mkdir ${LLVM_PROJECT}/build
|
|
RUN cd ${LLVM_PROJECT}/build && cmake -GNinja ../llvm \
|
|
-DLLVM_ENABLE_PROJECTS=mlir \
|
|
-DLLVM_BUILD_EXAMPLES=OFF \
|
|
-DLLVM_TARGETS_TO_BUILD="host" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DLLVM_ENABLE_ASSERTIONS=ON \
|
|
-DMLIR_ENABLE_BINDINGS_PYTHON=ON
|
|
RUN cd ${LLVM_PROJECT}/build && cmake --build . --target check-mlir
|
|
ENV PATH=${LLVM_PROJECT}/build/bin:${PATH}
|
|
|
|
FROM ubuntu:latest
|
|
COPY --from=0 /llvm-project/ /llvm-project/
|
|
ENV LLVM_PROJECT=/llvm-project
|
|
ENV PATH=${LLVM_PROJECT}/build/bin:${PATH}
|
|
RUN apt-get update
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake g++ build-essential python3 zlib1g-dev python3-pip python3-setuptools
|
|
RUN pip install numpy pybind11==2.6.2 PyYAML |