2022-10-27 07:36:26 +03:00
|
|
|
|
distributable:
|
|
|
|
|
url: https://github.com/pypa/pip/archive/refs/tags/{{version.raw}}.tar.gz
|
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
|
|
versions:
|
|
|
|
|
github: pypa/pip/tags
|
2023-07-11 01:41:15 +03:00
|
|
|
|
# FIXME: the major prior to 18 is 10, which is ancient and doesn't currently work
|
|
|
|
|
ignore: ['<18']
|
2022-10-27 07:36:26 +03:00
|
|
|
|
|
|
|
|
|
dependencies:
|
2023-07-10 18:04:22 +03:00
|
|
|
|
python.org: '*' #FIXME actually: ^3.7
|
|
|
|
|
# FIXME deps vary by version for the above and we don’t support that yet
|
2022-10-27 07:36:26 +03:00
|
|
|
|
|
2023-02-27 17:27:27 +03:00
|
|
|
|
runtime:
|
|
|
|
|
env:
|
|
|
|
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
2023-04-08 14:04:42 +03:00
|
|
|
|
PYTHONPATH: ${{prefix}}
|
2023-02-27 17:27:27 +03:00
|
|
|
|
|
2022-10-27 07:36:26 +03:00
|
|
|
|
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
|
2023-02-27 17:27:27 +03:00
|
|
|
|
rm -f bin/pip{{deps.python.org.version.major}}.{{deps.python.org.version.minor}}
|
2022-10-27 07:36:26 +03:00
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
shebangs:
|
|
|
|
|
- bin/pip
|
|
|
|
|
- bin/pip{{deps.python.org.version.major}}
|
|
|
|
|
test:
|
2023-07-11 01:41:15 +03:00
|
|
|
|
dependencies:
|
|
|
|
|
tea.xyz: '*'
|
|
|
|
|
script:
|
|
|
|
|
- run: tea +python.org~3.9 pip install findtui --target .
|
|
|
|
|
if: ~18
|
|
|
|
|
- run: pip install findtui --target .
|
|
|
|
|
if: '>=19'
|
|
|
|
|
- test -f findtui/main.py
|
2022-10-27 07:36:26 +03:00
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
|
- bin/pip
|
2023-03-23 15:51:59 +03:00
|
|
|
|
#FIXME - bin/pip{{deps.python.org.version.major}}
|