From cbe974dc3ecc2f1978af4c05682cd14ed9d49abc Mon Sep 17 00:00:00 2001 From: noreplydev Date: Sun, 22 Sep 2024 13:23:43 +0200 Subject: [PATCH] Support venv initialization with python and python3 --- apps/python/package.json | 5 ++++- yarn.lock | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/python/package.json b/apps/python/package.json index ea7101113..3bebdd28b 100644 --- a/apps/python/package.json +++ b/apps/python/package.json @@ -5,6 +5,9 @@ "scripts": { "python": "node run.js", "start": "node run.js -m flask --app server run", - "prepare-dev": "python setup.py" + "prepare-dev": "shx which python3 && python3 setup.py || python setup.py" + }, + "dependencies": { + "shx": "^0.3.4" } } diff --git a/yarn.lock b/yarn.lock index dc1aaeb16..0ef3db3fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28409,6 +28409,8 @@ __metadata: "python@workspace:apps/python": version: 0.0.0-use.local resolution: "python@workspace:apps/python" + dependencies: + shx: "npm:^0.3.4" languageName: unknown linkType: soft