Merge pull request #82 from paulswartz/support-patches

feat: support patching during install
This commit is contained in:
Daniel Perez 2021-02-05 11:58:57 +00:00 committed by GitHub
commit 8ab052fced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,8 +16,14 @@ install_python() {
fi
install_or_update_python_build
echo "python-build $version $install_path"
$(python_build_path) "$version" "$install_path"
local patch_file=${ASDF_PYTHON_PATCHES_DIRECTORY}/${version}.patch
if [ -f "$patch_file" ]; then
echo "python-build $version $install_path -p < $patch_file"
$(python_build_path) "$version" "$install_path" -p < $patch_file
else
echo "python-build $version $install_path"
$(python_build_path) "$version" "$install_path"
fi
}
install_default_python_packages() {