From 8f3b1fe0095e6f7a9d12bc1033362ce119d58fe9 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 1 Nov 2024 13:15:02 +0700 Subject: [PATCH] Fix python lib https://github.com/indygreg/python-build-standalone/issues/381 --- src/executor/runnercode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/executor/runnercode.js b/src/executor/runnercode.js index 3afa9ad..17cdff5 100644 --- a/src/executor/runnercode.js +++ b/src/executor/runnercode.js @@ -47,6 +47,7 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss await sshExec(`cd ~/tmp && mkdir -p ~/.pyenv/versions/${parg.version}`); await sshExec(`wget -O python.tar.zst "${parg.binary}" && tar -axf python.tar.zst && rm $_`); await sshExec(`mv ~/tmp/python/install/* ~/.pyenv/versions/${parg.version} || true ; rm -rf ~/tmp/python`); + await sshExec(`echo "export LD_LIBRARY_PATH=~/.pyenv/versions/${parg.version}:$LD_LIBRARY_PATH" >> ~/.bashrc`) await sshExec("cd ~/public_html", false); } else if (parg.version !== "system") { await sshExec(`pyenv install ${parg.version} -s`);