mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+langchain.com (#4254)
* new file: projects/langchain.com/package.yml * fix linux * fix python path
This commit is contained in:
parent
8d8db785c7
commit
625590569e
1 changed files with 39 additions and 0 deletions
39
projects/langchain.com/package.yml
Normal file
39
projects/langchain.com/package.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
distributable:
|
||||
url: https://github.com/langchain-ai/langchain/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: langchain-ai/langchain
|
||||
dependencies:
|
||||
python.org: ^3.12
|
||||
docker.com/compose: ^2.23
|
||||
runtime:
|
||||
env:
|
||||
PYTHONPATH: $PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages
|
||||
build:
|
||||
working-directory: libs/langchain
|
||||
script:
|
||||
- python -m pip install --prefix={{prefix}} .
|
||||
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||
working-directory: ${{prefix}}/lib
|
||||
- run: |
|
||||
sed -i.bak "s|{{deps.python.org.prefix}}/bin/python|/usr/bin/env python|g" ./*
|
||||
rm *.bak
|
||||
working-directory: ${{prefix}}/bin
|
||||
env:
|
||||
linux:
|
||||
MULTIDICT_NO_EXTENSIONS: 1
|
||||
provides:
|
||||
- bin/f2py
|
||||
- bin/jsondiff
|
||||
- bin/jsonpatch
|
||||
- bin/jsonpointer
|
||||
- bin/langchain-server
|
||||
- bin/langsmith
|
||||
- bin/normalizer
|
||||
test:
|
||||
- python -c "import langchain; print(langchain.__version__)" | grep {{version}}
|
||||
- killall langsmith || true
|
||||
- langsmith start &
|
||||
- sleep 1
|
||||
- langsmith status
|
||||
- langsmith stop
|
Loading…
Reference in a new issue