Skip to content

Commit f762648

Browse files
committed
install the correct version of the pip pkg
Fixes pkgxdev/pkgx#397
1 parent 96b79c3 commit f762648

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

share/brewkit/python-venv.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ set -ex
1111

1212
CMD_NAME=$(basename "$1")
1313
PREFIX="$(dirname "$(dirname "$1")")"
14+
VERSION="$(basename "$PREFIX")"
1415
PYTHON_VERSION=$(python --version | cut -d' ' -f2)
1516
PYTHON_VERSION_MAJ=$(echo "$PYTHON_VERSION" | cut -d. -f1)
1617

1718
python -m venv "$PREFIX"
1819

1920
cd "$PREFIX"/bin
2021

21-
./pip install "$CMD_NAME"
22+
./pip install "$CMD_NAME==$VERSION"
2223

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

0 commit comments

Comments
 (0)