mirror of
https://github.com/asdf-community/asdf-python
synced 2024-10-06 00:22:06 +08:00
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
@ -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 New Issue
Block a user