Skip to content

Commit

Permalink
Fix python lib
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 1, 2024
1 parent dc2920b commit 8f3b1fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/executor/runnercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 8f3b1fe

Please sign in to comment.