From 3edeef5c5b3d8b1522c87486600fea48fbec3389 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 3 May 2024 20:31:11 +0700 Subject: [PATCH] Update netlify.toml --- netlify.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/netlify.toml b/netlify.toml index 5049c4a..be5951a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,12 +1,16 @@ [build] command = """ - sudo apt-get update - sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev - curl https://pyenv.run | bash - export PATH="$HOME/.pyenv/bin:$PATH" - eval "$(pyenv init --path)" + echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc + echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc + echo 'eval "$(pyenv init -)"' >> ~/.bashrc + + echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile + echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile + echo 'eval "$(pyenv init -)"' >> ~/.profile + + exec "$SHELL" pyenv install 3.12.2 pyenv global 3.12.2