Skip to content

Commit 6702f52

Browse files
committed
changes to non venv vela install for bin path
Signed-off-by: Rob Elliott <[email protected]>
1 parent 7ab5bd2 commit 6702f52

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/arm/setup.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,12 @@ function setup_vela() {
223223
# different command for conda vs venv
224224
VNV=$(python3 -c "import sys; print('venv') if (sys.prefix != sys.base_prefix) else print('not_venv')")
225225
if [ ${VNV} == "venv" ]; then
226-
pip3 install .
226+
pip install .
227227
else
228-
pip3 install . --user
228+
# if not venv, we need the site-path where the vela
229+
vela_path = $(python -c "import site; print(site.USER_BASE+'/bin')")
230+
echo "export PATH=\${PATH}:${vela_path}" >> ${setup_path_script}
231+
pip install . --user
229232
fi
230233
}
231234

0 commit comments

Comments
 (0)