mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
parent
465a265d4e
commit
3f18331478
2 changed files with 9 additions and 5 deletions
|
@ -1,27 +1,30 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/langchain-ai/langchain/archive/v{{version}}.tar.gz
|
url: https://github.com/langchain-ai/langchain/archive/v{{version}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: langchain-ai/langchain
|
github: langchain-ai/langchain
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: ^3.12
|
python.org: ^3.12
|
||||||
docker.com/compose: ^2.23
|
docker.com/compose: ^2.23
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
PYTHONPATH: $PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages
|
PYTHONPATH: $PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages
|
||||||
|
|
||||||
build:
|
build:
|
||||||
working-directory: libs/langchain
|
working-directory: libs/langchain
|
||||||
script:
|
script:
|
||||||
- python -m pip install --prefix={{prefix}} .
|
- python -m pip install --prefix={{prefix}} .
|
||||||
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||||
working-directory: ${{prefix}}/lib
|
working-directory: ${{prefix}}/lib
|
||||||
- run: |
|
- run: sed -i'' "s|{{deps.python.org.prefix}}/bin/python|/usr/bin/env python|g" ./*
|
||||||
sed -i.bak "s|{{deps.python.org.prefix}}/bin/python|/usr/bin/env python|g" ./*
|
|
||||||
rm *.bak
|
|
||||||
working-directory: ${{prefix}}/bin
|
working-directory: ${{prefix}}/bin
|
||||||
env:
|
env:
|
||||||
linux:
|
linux:
|
||||||
MULTIDICT_NO_EXTENSIONS: 1
|
MULTIDICT_NO_EXTENSIONS: 1
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/f2py
|
- bin/f2py
|
||||||
- bin/jsondiff
|
- bin/jsondiff
|
||||||
|
@ -30,6 +33,7 @@ provides:
|
||||||
- bin/langchain-server
|
- bin/langchain-server
|
||||||
- bin/langsmith
|
- bin/langsmith
|
||||||
- bin/normalizer
|
- bin/normalizer
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- python -c "import langchain; print(langchain.__version__)" | grep {{version}}
|
- python -c "import langchain; print(langchain.__version__)" | grep {{version}}
|
||||||
- killall langsmith || true
|
- killall langsmith || true
|
||||||
|
|
|
@ -14,7 +14,7 @@ dependencies:
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||||
PYTHONPATH: ${{prefix}}
|
PYTHONPATH: ${{prefix}}:$PYTHONPATH
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue