File: incremental_build.sh

package info (click to toggle)
colmap 3.12.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,928 kB
  • sloc: cpp: 101,944; ansic: 17,774; python: 4,958; sh: 366; makefile: 158
file content (18 lines) | stat: -rwxr-xr-x 553 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Invoke from anywhere to perform an incremental build of pycolmap bindings.
# Make sure to install the requirements from pyproject.toml. If colmap is not
# installed globally but in a custom directory, you should set the colmap_DIR
# environment variable, e.g.:
#
#       colmap_DIR=/path/to/cmake/install/prefix pycolmap/incremental_build.sh

set -e

script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

pip install \
    --no-build-isolation \
    -Cbuild-dir="$script_dir/build" \
    -ve \
    "$script_dir/.."