feat: support patching during install
`python-build` supports a `-p` option to patch Python before installing. In particular, I use this to apply a patch for OS X Big Sur before installing older versions of Python. I'm not super-wedded to this particular implementation: opening this PR for more discussion.
This commit is contained in:
parent
8078f74efb
commit
a48bcb72bc
1 changed files with 8 additions and 2 deletions
|
@ -16,8 +16,14 @@ install_python() {
|
||||||
fi
|
fi
|
||||||
install_or_update_python_build
|
install_or_update_python_build
|
||||||
|
|
||||||
|
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"
|
echo "python-build $version $install_path"
|
||||||
$(python_build_path) "$version" "$install_path"
|
$(python_build_path) "$version" "$install_path"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_default_python_packages() {
|
install_default_python_packages() {
|
||||||
|
|
Loading…
Reference in a new issue