mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-09 12:03:49 -05:00
move patches into ./share to fix the install.sh
This commit is contained in:
@@ -139,8 +139,8 @@ install_package_using() {
|
||||
|
||||
apply_patches() {
|
||||
local package_name="$1"
|
||||
local patches_path="${PYTHON_BUILD_ROOT}/patches/${DEFINITION_PATH##*/}/${package_name}"
|
||||
for patch in "${patches_path}"/*; do
|
||||
local patches_path="${PYTHON_BUILD_ROOT}/share/python-build/patches/${DEFINITION_PATH##*/}"
|
||||
for patch in "${patches_path}/${package_name}/"*; do
|
||||
if [ -f "$patch" ]; then
|
||||
echo "Applying ${patch##*/} to ${package_name}..." >&2
|
||||
patch -p0 < "$patch"
|
||||
@@ -666,7 +666,7 @@ usage() {
|
||||
|
||||
list_definitions() {
|
||||
{ for definition in "${PYTHON_BUILD_ROOT}/share/python-build/"*; do
|
||||
echo "${definition##*/}"
|
||||
[ -f "${definition}" ] && echo "${definition##*/}"
|
||||
done
|
||||
} | sort
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user