File: bootstrap-devenv.sh

package info (click to toggle)
kf6-kapidox 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,208 kB
  • sloc: python: 1,812; javascript: 617; sh: 206; xml: 182; makefile: 5
file content (20 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -ue

if ! [ -d "kapidox" ]; then
  echo "FATAL: this must be executed in the root directory of the kapidox project"
  exit 1
fi

VENV=.kapidox_venv
rm -rf $VENV
python3 -m venv $VENV
$VENV/bin/pip install --upgrade pip wheel
$VENV/bin/pip install -r requirements.frozen.txt
$VENV/bin/pip install --no-deps --editable .

echo "******************************************************************"
echo "activate the development venv by running"
echo "    source $VENV/bin/activate"
echo "******************************************************************"