mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
Fix pip < 23.1
This commit is contained in:
parent
e81b11085e
commit
fae90ff2c7
1 changed files with 17 additions and 6 deletions
|
@ -49,11 +49,21 @@ build:
|
||||||
# FIXME hardcoded `3`
|
# FIXME hardcoded `3`
|
||||||
- |
|
- |
|
||||||
install -D $PROP {{prefix}}/bin/pip3
|
install -D $PROP {{prefix}}/bin/pip3
|
||||||
echo "exec pkgx python@3 \"\$d/bin/pip\" \"\$@\"" >> {{prefix}}/bin/pip3
|
if semverator lt {{version}} 23.1.2; then
|
||||||
|
python="'python<3.12'"
|
||||||
|
else
|
||||||
|
python=python@3
|
||||||
|
fi
|
||||||
|
echo "exec pkgx $python \"\$d/bin/pip\" \"\$@\"" >> {{prefix}}/bin/pip3
|
||||||
|
|
||||||
- |
|
- |
|
||||||
install -D $PROP {{prefix}}/bin/pip
|
install -D $PROP {{prefix}}/bin/pip
|
||||||
echo "exec pkgx python \"\$d/bin/pip\" \"\$@\"" >> {{prefix}}/bin/pip
|
if semverator lt {{version}} 23.1.2; then
|
||||||
|
python="'python<3.12'"
|
||||||
|
else
|
||||||
|
python=python
|
||||||
|
fi
|
||||||
|
echo "exec pkgx $python \"\$d/bin/pip\" \"\$@\"" >> {{prefix}}/bin/pip
|
||||||
|
|
||||||
prop: |
|
prop: |
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -83,10 +93,11 @@ test:
|
||||||
- pip --version | grep {{prefix}}
|
- pip --version | grep {{prefix}}
|
||||||
- pip --version | grep {{version}}
|
- pip --version | grep {{version}}
|
||||||
|
|
||||||
- |
|
- run: |
|
||||||
for v in 3.8 3.9 3.10 3.11; do
|
for v in 3.8 3.9 3.10 3.11; do
|
||||||
test $(pip$v inspect | pkgx jq --raw-output .environment.python_version) = $v
|
test $(pip$v inspect | pkgx jq --raw-output .environment.python_version) = $v
|
||||||
done
|
done
|
||||||
|
if: '>=22' # inspect command introduced at v22
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pip
|
- bin/pip
|
||||||
|
|
Loading…
Reference in a new issue