mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 21:52:34 +00:00
Force PYTHON_BUILD_PATCH_PATH
to be absolute path
This commit is contained in:
parent
5b7eb42a9f
commit
008a5a1ff9
1 changed files with 3 additions and 2 deletions
|
@ -1264,9 +1264,10 @@ elif [ ! -e "$DEFINITION_PATH" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$PYTHON_BUILD_PATCH_PATH" ]; then
|
if [ -z "$PYTHON_BUILD_PATCH_PATH" ]; then
|
||||||
PYTHON_BUILD_PATCH_PATH="${DEFINITION_PATH%/*}/patches/${DEFINITION_PATH##*/}"
|
# Find patches from "./patches" relatively from the definition path
|
||||||
|
PYTHON_BUILD_PATCH_PATH="$(abs_dirname "${DEFINITION_PATH}" 2>/dev/null)/patches/${DEFINITION_PATH##*/}"
|
||||||
else
|
else
|
||||||
PYTHON_BUILD_PATCH_PATH="${PYTHON_BUILD_PATCH_PATH%/}"
|
PYTHON_BUILD_PATCH_PATH="$(abs_dirname "${PYTHON_BUILD_PATCH_PATH}/.." 2>/dev/null)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PREFIX_PATH="${ARGUMENTS[1]}"
|
PREFIX_PATH="${ARGUMENTS[1]}"
|
||||||
|
|
Loading…
Reference in a new issue