File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Get depthai version from input argument or print message
4- if [ -z " $1 " ] || [ " $1 " == " latest" ]; then
4+ DEPTHAI_VERSION=" $1 "
5+
6+ RELEASE_URL=" https://artifacts.luxonis.com/artifactory/luxonis-python-release-local/"
7+ SNAPSHOT_URL=" https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/"
8+
9+ if [ -z " $DEPTHAI_VERSION " ] || [ " $DEPTHAI_VERSION " == " latest" ]; then
510 echo " Using latest depthai"
611 source /home/hil/.hil/bin/activate
712else
8- DEPTHAI_VERSION= " $1 "
13+ echo " Installing depthai== $DEPTHAI_VERSION (checking both release and snapshot artifactories) "
914 rm -rf venv
1015 python3 -m venv venv
1116 source venv/bin/activate
12- pip install --no-cache-dir --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-release-local/ depthai==" $DEPTHAI_VERSION "
17+ pip install --no-cache-dir --extra-index-url " $RELEASE_URL " --extra-index-url " $SNAPSHOT_URL " depthai==" $DEPTHAI_VERSION "
1318fi
1419
1520export DEPTHAI_PLATFORM=rvc4
You can’t perform that action at this time.
0 commit comments