From 8f65c2c8727fa4a249bc4f2e1dba77285054f740 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 --- .tox-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tox-install.sh b/.tox-install.sh index 8f9d221d256..d9c44602b20 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