Skip to content

Commit

Permalink
install the correct version of the pip pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 21, 2023
1 parent 96b79c3 commit f762648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/brewkit/python-venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ set -ex

CMD_NAME=$(basename "$1")
PREFIX="$(dirname "$(dirname "$1")")"
VERSION="$(basename "$PREFIX")"
PYTHON_VERSION=$(python --version | cut -d' ' -f2)
PYTHON_VERSION_MAJ=$(echo "$PYTHON_VERSION" | cut -d. -f1)

python -m venv "$PREFIX"

cd "$PREFIX"/bin

./pip install "$CMD_NAME"
./pip install "$CMD_NAME==$VERSION"

for x in *; do
if test "$x" != "$CMD_NAME" -a "$x" != python; then
Expand Down

0 comments on commit f762648

Please sign in to comment.