26
26
# • The default full path to the Poetry that will be installed and run by
27
27
# this script (not present until after ensure-poetry or run-poetry is
28
28
# executed).
29
- # * WANT_POETRY_VERSION (overridable) (default 1.5.1 )
29
+ # * WANT_POETRY_VERSION (overridable) (default 1.8.2 )
30
30
# • The version of Poetry that will be installed by run-poetry when executed.
31
31
# * POETRY_PYTHON_VERSION (overridable) (default to result of find-python)
32
32
# • The Python binary to use by the Poetry installer and virtual environment(s).
33
33
34
34
# Load vars and utils:
35
35
. " $( dirname " ${BASH_SOURCE[0]} " ) /use.sh" python paths base with_lock download
36
36
37
- : " ${WANT_POETRY_VERSION:= 1.5.1} "
38
- : " ${POETRY_PYTHON_BINARY:= " $( find-python) " } "
37
+ : " ${WANT_POETRY_VERSION:= 1.8.2} "
39
38
declare -r -x POETRY_HOME=${FORCE_POETRY_HOME:- " $BUILD_CACHE_DIR /poetry-$WANT_POETRY_VERSION " }
40
39
declare -r POETRY_EXE=$POETRY_HOME /bin/poetry$EXE_SUFFIX
41
40
@@ -49,6 +48,7 @@ install-poetry() {
49
48
installer=$poetry_home /install-poetry.py
50
49
download-file --uri=https://install.python-poetry.org --out=" $installer "
51
50
# Run the install:
51
+ : " ${POETRY_PYTHON_BINARY:= " $( find-python) " } "
52
52
with-lock " $POETRY_HOME /.install.lock" \
53
53
env POETRY_HOME=" $poetry_home " \
54
54
" $POETRY_PYTHON_BINARY " -u " $installer " --yes --version " $poetry_version " \
@@ -66,6 +66,7 @@ ensure-poetry() {
66
66
if ! is-file " $home /installed.txt" || [[ " $( cat " $home /installed.txt" ) " != " $version " ]]; then
67
67
install-poetry " $version " " $home "
68
68
fi
69
+ : " ${POETRY_PYTHON_BINARY:= " $( find-python) " } "
69
70
# Extra step must be taken to ensure Poetry's virtual environment uses the correct Python binary.
70
71
# See: https://github.com/python-poetry/poetry/issues/522
71
72
with-lock " $POETRY_HOME /.install.lock" \
0 commit comments