Skip to content

Commit 50bff4d

Browse files
committed
Fixed capability to build bindings using existing depthai installation
1 parent cb5117f commit 50bff4d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
run: |
227227
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
228228
cmake --build build_core --parallel --target install
229-
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/lib/cmake/depthai" >> $GITHUB_ENV
229+
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
230230
231231
- name: Append build hash if not a tagged commit
232232
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -281,7 +281,7 @@ jobs:
281281
run: |
282282
cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
283283
cmake --build build_core --parallel --target install
284-
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/lib/cmake/depthai" >> $GITHUB_ENV
284+
echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV
285285
286286
- name: Append build hash if not a tagged commit
287287
if: startsWith(github.ref, 'refs/tags/v') != true

depthai-core

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def build_extension(self, ext):
108108
# Pass installation directory
109109
if 'DEPTHAI_INSTALLATION_DIR' in os.environ:
110110
cmake_args += ['-DDEPTHAI_PYTHON_USE_FIND_PACKAGE=ON']
111-
cmake_args += ['-Ddepthai_DIR='+os.environ['DEPTHAI_INSTALLATION_DIR']]
111+
cmake_args += ['-DCMAKE_PREFIX_PATH='+os.environ['DEPTHAI_INSTALLATION_DIR']]
112112

113113
# Set build type (debug vs release for library as well as dependencies)
114114
cfg = 'Debug' if self.debug else 'Release'

0 commit comments

Comments
 (0)