-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
34 lines (26 loc) · 707 Bytes
/
Copy pathinstall.sh
File metadata and controls
34 lines (26 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Optional
sudo apt-get install git build-essential cmake python3 python3-dev python3-pip
# Get the repository or download from the releases
git clone https://github.com/Huelse/SEAL-Python.git
cd SEAL-Python
# Install dependencies
pip3 install numpy pybind11
# Init the SEAL and pybind11
git submodule update --init --recursive
# Get the newest repositories (dev only)
# git submodule update --remote
# Build the SEAL lib
cd SEAL
cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF
cmake --build build
cd ..
# Run the setup.py
python3 setup.py build_ext -i
# Test
cp seal.*.so examples
cd examples
python3 4_bgv_basics.py
# Make package available
cd ..
python3 setup.py install