Skip to content

Commit 2c6fb8c

Browse files
committed
Fix venv entrypoint hook
1 parent 31f1eb3 commit 2c6fb8c

File tree

1 file changed

+5
-4
lines changed
  • docker/dev/container/hooks/init

1 file changed

+5
-4
lines changed

docker/dev/container/hooks/init/10_venv

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ function execute_hook() {
1111
set -x
1212
PIP="uv pip"
1313

14+
cd /opt/pycroft/app
1415
if [[ ! $INFILE -nt $STAMPFILE ]]; then
1516
echo "Lockfile did not change since last run. Nothing to do."
1617
return
1718
fi
1819

1920
echo "No pip packages found, installing requirements"
20-
cd /opt/pycroft/app
21-
ls $(uv cache dir)
22-
uv sync --locked
23-
$PIP install -e '.[dev]' -e './deps/wtforms-widgets'
21+
ls "$(uv cache dir)" || true
22+
uv venv "$VIRTUAL_ENV"
23+
uv sync --active --locked
24+
$PIP install -e . -e './deps/wtforms-widgets'
2425
touch $STAMPFILE
2526
}
2627

0 commit comments

Comments
 (0)