Skip to content

Commit b497768

Browse files
committed
Add --seed and --python flags to uv venv command in justfile
Updated the 'create' recipe to match autobahn-python's uv venv usage: - Added --seed flag (installs pip, setuptools, wheel in venv) - Changed --python flag to use quoted PYTHON_SPEC variable - Renamed SPEC to PYTHON_SPEC for clarity This ensures venvs have all necessary tools pre-installed and matches the pattern used in autobahn-python justfile.
1 parent abcc862 commit b497768

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ create venv="":
149149
if [ -z "${VENV_NAME}" ]; then
150150
VENV_NAME=$(just --quiet _get-system-venv-name)
151151
fi
152-
SPEC=$(just --quiet _get-spec ${VENV_NAME})
152+
PYTHON_SPEC=$(just --quiet _get-spec ${VENV_NAME})
153153
VENV_PATH="{{VENV_DIR}}/${VENV_NAME}"
154-
echo "==> Creating venv for ${VENV_NAME} (${SPEC})..."
154+
echo "==> Creating venv for ${VENV_NAME} (${PYTHON_SPEC})..."
155155
if [ ! -d "${VENV_PATH}" ]; then
156-
uv venv --python ${SPEC} ${VENV_PATH} --allow-existing
156+
uv venv --seed --python "${PYTHON_SPEC}" "${VENV_PATH}"
157157
echo "--> Created venv at ${VENV_PATH}"
158158
else
159159
echo "--> Venv already exists at ${VENV_PATH}"

0 commit comments

Comments
 (0)