move patches into ./share to fix the install.sh
This commit is contained in:
parent
e9b0ecf021
commit
f01d1d1064
@ -139,8 +139,8 @@ install_package_using() {
|
|||||||
|
|
||||||
apply_patches() {
|
apply_patches() {
|
||||||
local package_name="$1"
|
local package_name="$1"
|
||||||
local patches_path="${PYTHON_BUILD_ROOT}/patches/${DEFINITION_PATH##*/}/${package_name}"
|
local patches_path="${PYTHON_BUILD_ROOT}/share/python-build/patches/${DEFINITION_PATH##*/}"
|
||||||
for patch in "${patches_path}"/*; do
|
for patch in "${patches_path}/${package_name}/"*; do
|
||||||
if [ -f "$patch" ]; then
|
if [ -f "$patch" ]; then
|
||||||
echo "Applying ${patch##*/} to ${package_name}..." >&2
|
echo "Applying ${patch##*/} to ${package_name}..." >&2
|
||||||
patch -p0 < "$patch"
|
patch -p0 < "$patch"
|
||||||
@ -666,7 +666,7 @@ usage() {
|
|||||||
|
|
||||||
list_definitions() {
|
list_definitions() {
|
||||||
{ for definition in "${PYTHON_BUILD_ROOT}/share/python-build/"*; do
|
{ for definition in "${PYTHON_BUILD_ROOT}/share/python-build/"*; do
|
||||||
echo "${definition##*/}"
|
[ -f "${definition}" ] && echo "${definition##*/}"
|
||||||
done
|
done
|
||||||
} | sort
|
} | sort
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ for file in bin/*; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
for file in share/python-build/*; do
|
for file in share/python-build/*; do
|
||||||
cp "${file}" "${SHARE_PATH}"
|
cp -Rp "${file}" "${SHARE_PATH}"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Installed python-build at ${PREFIX}"
|
echo "Installed python-build at ${PREFIX}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user