Skip to content

Commit 5c38c1e

Browse files
authored
clean up setup.sh (#1747)
simplify
1 parent 589ed90 commit 5c38c1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/bin/bash
22
set -e
33

4-
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
5-
cd $DIR
4+
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
65

76
# TODO: why doesn't uv do this?
8-
export PYTHONPATH=$DIR
7+
export PYTHONPATH=$BASEDIR
98

109
# *** dependencies install ***
1110
if ! command -v uv &>/dev/null; then
1211
echo "'uv' is not installed. Installing 'uv'..."
1312
curl -LsSf https://astral.sh/uv/install.sh | sh
1413
fi
1514

15+
export UV_PROJECT_ENVIRONMENT="$BASEDIR/.venv"
1616
uv sync --all-extras
17-
source .venv/bin/activate
17+
source "$PYTHONPATH/.venv/bin/activate"

0 commit comments

Comments
 (0)