Skip to content

Commit

Permalink
Add OR-Tools dependencies to README and setup-ortools.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Dec 25, 2023
1 parent 8d7dce8 commit 896757a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ and build from scratch, e.g. as follows (also available as [submodules/setup-ort
for convenience):

```
% apt install -y git build-essential python3-pip cmake swig
% git submodule init
% git submodule update
% cd submodules/or-tools
% git apply ../0001-Pin-pybind11_protobuf-commit-in-cmake-files.patch
% mkdir build
% cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON
% make -C build -j8
Expand Down
4 changes: 4 additions & 0 deletions submodules/setup-ortools.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env sh

# Install some dependencies
apt install -y git build-essential python3-pip cmake swig

git submodule init
git submodule update

Expand All @@ -12,6 +15,7 @@ mkdir build
cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON
cd build
make -j8

source python/venv/bin/activate
pip3 install sympy
deactivate

0 comments on commit 896757a

Please sign in to comment.