From 77bfd5f9b695e022f84dedf57b58368716090594 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Jun 2019 21:35:51 +0300 Subject: [PATCH] Resolve tox substitutions to absolute paths Since tox-3.8.0 the substituted virtualenv-paths of tox (like {envpython} or {envsitepackagesdir}) have become relative. The documentation says nothing about this. Thus, these paths should always be resolved as absolute. https://github.com/tox-dev/tox/issues/1339 Fixes: https://pagure.io/freeipa/issue/7977 Signed-off-by: Stanislav Levin Reviewed-By: Alexander Bokovoy --- .tox-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tox-install.sh b/.tox-install.sh index 8f9d221d2..d9c44602b 100755 --- a/.tox-install.sh +++ b/.tox-install.sh @@ -2,8 +2,8 @@ set -ex FLAVOR="$1" -ENVPYTHON="$2" -ENVSITEPACKAGESDIR="$3" +ENVPYTHON="$(realpath "$2")" +ENVSITEPACKAGESDIR="$(realpath "$3")" # 3...end are package requirements shift 3