diff --git a/projects/langchain.com/package.yml b/projects/langchain.com/package.yml index 687b533d..f66fac0f 100644 --- a/projects/langchain.com/package.yml +++ b/projects/langchain.com/package.yml @@ -1,27 +1,30 @@ 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}} + - 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 + - run: sed -i'' "s|{{deps.python.org.prefix}}/bin/python|/usr/bin/env python|g" ./* working-directory: ${{prefix}}/bin env: linux: MULTIDICT_NO_EXTENSIONS: 1 + provides: - bin/f2py - bin/jsondiff @@ -30,6 +33,7 @@ provides: - bin/langchain-server - bin/langsmith - bin/normalizer + test: - python -c "import langchain; print(langchain.__version__)" | grep {{version}} - killall langsmith || true diff --git a/projects/pip.pypa.io/package.yml b/projects/pip.pypa.io/package.yml index 221c5f23..b3aa8746 100644 --- a/projects/pip.pypa.io/package.yml +++ b/projects/pip.pypa.io/package.yml @@ -14,7 +14,7 @@ dependencies: runtime: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 - PYTHONPATH: ${{prefix}} + PYTHONPATH: ${{prefix}}:$PYTHONPATH build: dependencies: