Skip to content

Commit

Permalink
Added pybind11 deps from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
like-a-freedom committed Feb 2, 2025
1 parent 167fc0d commit cfb44f3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN apt-get install -y \
g++ \
git \
python3-dev
# \
# protobuf-compiler \
# libprotobuf-dev

#29.3
#5.29.3
Expand All @@ -23,6 +26,23 @@ RUN git clone --branch v${PROTOBUF_VERSION} --recurse-submodules https://github.
cmake --build build --parallel $(nproc) && \
cmake --install build

RUN git clone https://github.com/pybind/pybind11.git \
&& cd pybind11 \
&& git checkout v2.13.6 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release \
-DPYBIND11_PYTHON_VERSION=3.13 \
-DPYBIND11_TEST=OFF \
-DPython_EXECUTABLE=$(which python3) \
-DPython_INCLUDE_DIRS=/usr/local/include/python3.13 \
-DPython_LIBRARIES=/usr/local/lib/libpython3.13.so \
.. \
&& make -j1 install \
&& cd / \
&& rm -rf /pybind11 \
&& pip install pybind11

# Set comprehensive build environment variables
ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
Expand Down

0 comments on commit cfb44f3

Please sign in to comment.