mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 17:05:07 +03:00
7f68885ffa
Also remove these versioned provides since we implicitly support that now and tea/cli lost the code that supports this for the provides key at some point. However the pip one we would still need and we don't support that in tea/cli
45 lines
1,005 B
YAML
45 lines
1,005 B
YAML
distributable:
|
|
url: https://github.com/pypa/pip/archive/refs/tags/{{version.raw}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: pypa/pip/tags
|
|
|
|
dependencies:
|
|
python.org: ^3.7
|
|
|
|
runtime:
|
|
env:
|
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
|
|
|
build:
|
|
dependencies:
|
|
curl.se: '*'
|
|
script: |
|
|
curl -O https://bootstrap.pypa.io/get-pip.py
|
|
|
|
test -d bootstrap || mkdir bootstrap
|
|
|
|
python get-pip.py --target="$(pwd)/bootstrap"
|
|
|
|
PYTHONPATH=$(pwd)/bootstrap python -m pip install . --target={{prefix}}
|
|
|
|
cd {{prefix}}
|
|
for binfile in $shebangs; do
|
|
sed -i.bak -e 's|#!{{ deps.python.org.prefix }}/bin/|#!/usr/bin/env |g' $binfile
|
|
rm $binfile.bak
|
|
done
|
|
rm -f bin/pip{{deps.python.org.version.major}}.{{deps.python.org.version.minor}}
|
|
|
|
env:
|
|
shebangs:
|
|
- bin/pip
|
|
- bin/pip{{deps.python.org.version.major}}
|
|
test:
|
|
script: |
|
|
pip install findtui --target .
|
|
test -f findtui/main.py
|
|
|
|
provides:
|
|
- bin/pip
|
|
#FIXME - bin/pip{{deps.python.org.version.major}}
|