Skip to content

Commit

Permalink
Use uv pip sync and allow-existing instead of uv pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
ewianda committed Nov 6, 2024
1 parent 96a2c12 commit 933759c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uv/private/create_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ then
exit -1
fi

"$UV" venv "$BUILD_WORKSPACE_DIRECTORY/$target" --python "$PYTHON"
"$UV" venv "$BUILD_WORKSPACE_DIRECTORY/$target" --python "$PYTHON" --allow-existing
source "$BUILD_WORKSPACE_DIRECTORY/$target/bin/activate"
"$UV" pip install -r "$REQUIREMENTS_TXT" {{args}}
"$UV" pip sync -r "$REQUIREMENTS_TXT" {{args}}

site_packages_extra_files=({{site_packages_extra_files}})
if [ ! -z ${site_packages_extra_files+x} ]; then
Expand Down

0 comments on commit 933759c

Please sign in to comment.