We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758d9aa commit bea92fbCopy full SHA for bea92fb
scripts/dependencies.sh
@@ -2,11 +2,19 @@
2
3
set -euo pipefail
4
5
+# Use the python from PATH (set by setup-python)
6
+PYTHON_BIN="${PYTHON_BIN:-python}"
7
+
8
9
if ! [ -x "$(command -v poetry)" ]; then
10
if ! [ -x "$(command -v pipx)" ]; then
- python -m pip install --user pipx --isolated
- python -m pipx ensurepath
11
+ $PYTHON_BIN -m pip install --user pipx --isolated
12
+ $PYTHON_BIN -m pipx ensurepath
13
fi
- pipx install poetry
14
+ pipx install poetry --python $PYTHON_BIN
15
16
17
+# Ensure poetry uses the correct python environment
18
+poetry env use $PYTHON_BIN
19
20
poetry self add [email protected] [email protected]
0 commit comments