forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·26 lines (19 loc) · 956 Bytes
/
build.sh
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
#!/usr/bin/env bash
set -ex
echo "Cloning manifold version ${MANIFOLD_VERSION}"
git clone --branch=v${MANIFOLD_VERSION} --depth=1 --recursive https://github.com/elalish/manifold.git /opt/manifold || \
git clone --depth=1 --recursive https://github.com/elalish/manifold.git /opt/manifold
# Navigate to the directory containing PyMeshLab's setup.py
cd /opt/manifold && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DMANIFOLD_PYBIND=ON -DMANIFOLD_CROSS_SECTION=ON .. && \
make -j $(nproc) && \
cd /opt/manifold && pip3 wheel . -w /opt/manifold/wheels --verbose
# Verify the contents of the /opt directory
ls /opt/manifold/wheels
# Return to the root directory
cd /
pip3 install --no-cache-dir --verbose /opt/manifold/wheels/manifold3d*.whl
# Optionally upload to a repository using Twine
twine upload --verbose /opt/manifold/wheels/manifold3d*.whl || echo "Failed to upload wheel to ${TWINE_REPOSITORY_URL}"