Merge pull request #134 from jfly/jfly/allow-non-existant-patch-files
Don't complain if a patch file doesn't exist for a particular version of python
This commit is contained in:
commit
c9dc75361d
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ install_python() {
|
|||
echo "python-build --patch $version $install_path"
|
||||
echo "with patch file from: $ASDF_PYTHON_PATCH_URL"
|
||||
$(python_build_path) --patch "$version" "$install_path" < <(curl -sSL "$ASDF_PYTHON_PATCH_URL")
|
||||
elif [[ -n "${ASDF_PYTHON_PATCHES_DIRECTORY:-}" ]]; then
|
||||
elif [[ -n "${ASDF_PYTHON_PATCHES_DIRECTORY:-}" ]] && [[ -f ${ASDF_PYTHON_PATCHES_DIRECTORY}/${version}.patch ]]; then
|
||||
local patch_file=${ASDF_PYTHON_PATCHES_DIRECTORY}/${version}.patch
|
||||
echo "python-build $version $install_path -p < $patch_file"
|
||||
$(python_build_path) "$version" "$install_path" -p < $patch_file
|
||||
|
|
Loading…
Reference in a new issue