Skip to content

Commit e276817

Browse files
authored
docs: fix vercel build script (langchain-ai#19090)
amazon linux 2023 doesn't have `amazon-linux-extras` but shoudl have python3.9 by default
1 parent d4b025c commit e276817

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/vercel_build.sh

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
yum -y update
44
yum install gcc bzip2-devel libffi-devel zlib-devel wget tar gzip -y
5-
amazon-linux-extras install python3.8 -y
65

76
# install quarto
87
wget -q https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.450/quarto-1.3.450-linux-amd64.tar.gz
@@ -11,26 +10,26 @@ export PATH=$PATH:$(pwd)/quarto-1.3.450/bin/
1110

1211

1312
# setup python env
14-
python3.8 -m venv .venv
13+
python3 -m venv .venv
1514
source .venv/bin/activate
16-
python3.8 -m pip install --upgrade pip
17-
python3.8 -m pip install -r vercel_requirements.txt
15+
python3 -m pip install --upgrade pip
16+
python3 -m pip install -r vercel_requirements.txt
1817

1918
# autogenerate integrations tables
20-
python3.8 scripts/model_feat_table.py
19+
python3 scripts/model_feat_table.py
2120

2221
# copy in external files
2322
mkdir docs/templates
2423
cp ../templates/docs/INDEX.md docs/templates/index.md
25-
python3.8 scripts/copy_templates.py
24+
python3 scripts/copy_templates.py
2625

2726
cp ../cookbook/README.md src/pages/cookbook.mdx
2827

2928
wget -q https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O docs/langserve.md
30-
python3.8 scripts/resolve_local_links.py docs/langserve.md https://github.com/langchain-ai/langserve/tree/main/
29+
python3 scripts/resolve_local_links.py docs/langserve.md https://github.com/langchain-ai/langserve/tree/main/
3130

3231
wget -q https://raw.githubusercontent.com/langchain-ai/langgraph/main/README.md -O docs/langgraph.md
33-
python3.8 scripts/resolve_local_links.py docs/langgraph.md https://github.com/langchain-ai/langgraph/tree/main/
32+
python3 scripts/resolve_local_links.py docs/langgraph.md https://github.com/langchain-ai/langgraph/tree/main/
3433

3534
# render
3635
quarto render docs/

0 commit comments

Comments
 (0)