pantry/projects/pip.pypa.io/package.yml
Jacob Heider 3f18331478 fix(langchain)
closes #4488
2023-12-18 18:03:08 -05:00

55 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://github.com/pypa/pip/archive/refs/tags/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: pypa/pip/tags
# FIXME: the major prior to 18 is 10, which is ancient and doesn't currently work
ignore: ['<18']
dependencies:
python.org: '*' #FIXME actually: ^3.7
# FIXME deps vary by version for the above and we dont support that yet
runtime:
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PYTHONPATH: ${{prefix}}:$PYTHONPATH
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:
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
provides:
- bin/pip
#FIXME - bin/pip{{deps.python.org.version.major}}