Skip to content

Commit

Permalink
Handle python system install
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Feb 14, 2024
1 parent cb9f895 commit 1799a35
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.41.0",
"version": "0.41.2",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export default async function runConfig(config, domain, writer, sandbox = false)
await sshExec(`mv ~/tmp/python/install/* ~/.pyenv/versions/${parg.version} || true ; rm -rf ~/tmp/python`);
await sshExec(`(cd ~/.pyenv/versions/${parg.version}/bin && ln -s python3 python) || true`);
await sshExec("cd ~/public_html", false);
} else {
} else if (parg.version !== "system") {
await sshExec(`pyenv install ${parg.version} -s`);
}
await sshExec(`pyenv global ${parg.version.replace(":latest", "")} ; source ~/.bashrc`);
Expand Down
2 changes: 2 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export const getPythonVersion = (/** @type {string} */ status) => {
return expand(status);
}
switch (status) {
case 'system':
return expand(status);
case 'lts':
case 'security':
var security = pythonVersionsList.find(x => {
Expand Down

0 comments on commit 1799a35

Please sign in to comment.