-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bash
More file actions
executable file
·35 lines (32 loc) · 816 Bytes
/
Copy pathsetup.bash
File metadata and controls
executable file
·35 lines (32 loc) · 816 Bytes
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
27
28
29
30
31
32
33
34
#!/bin/sh
if [[ "$VIRTUAL_ENV" != "" ]]
then
echo "Build and test"
maturin develop --release
pytest
else
if [[ -d "./venv" ]]
then
echo "Activating venv"
source venv/bin/activate
echo "Build package in venv using maturin"
maturin develop
echo "Test package"
pytest
deactivate
else
echo "Setting up virutal enviroment"
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
echo "Updating Cargo"
cargo update
echo "Build package in venv using maturin"
maturin develop
echo "Test package"
pytest
deactivate
fi
echo "Run the command: source venv/bin/activate"
echo "to access the mediapipe_rotations package."
fi