mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 07:21:14 +02:00
eclass/python-any-r1: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
c18a01bd01
commit
c4f1021fa4
@ -43,7 +43,7 @@ case ${EAPI} in
|
|||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! ${_PYTHON_ANY_R1_ECLASS} ]]; then
|
if [[ -z ${_PYTHON_ANY_R1_ECLASS} ]]; then
|
||||||
_PYTHON_ANY_R1_ECLASS=1
|
_PYTHON_ANY_R1_ECLASS=1
|
||||||
|
|
||||||
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
||||||
@ -245,7 +245,7 @@ unset -f _python_any_set_globals
|
|||||||
# )
|
# )
|
||||||
# @CODE
|
# @CODE
|
||||||
python_gen_any_dep() {
|
python_gen_any_dep() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
local depstr=${1}
|
local depstr=${1}
|
||||||
[[ ${depstr} ]] || die "No dependency string provided"
|
[[ ${depstr} ]] || die "No dependency string provided"
|
||||||
@ -271,7 +271,7 @@ python_gen_any_dep() {
|
|||||||
#
|
#
|
||||||
# This function will call python_check_deps() if defined.
|
# This function will call python_check_deps() if defined.
|
||||||
python_setup() {
|
python_setup() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
_python_sanity_checks
|
_python_sanity_checks
|
||||||
|
|
||||||
# support developer override
|
# support developer override
|
||||||
@ -338,7 +338,7 @@ python_setup() {
|
|||||||
# In a binary package installs is a no-op. If you need Python in pkg_*
|
# In a binary package installs is a no-op. If you need Python in pkg_*
|
||||||
# phases of a binary package, call python_setup directly.
|
# phases of a binary package, call python_setup directly.
|
||||||
python-any-r1_pkg_setup() {
|
python-any-r1_pkg_setup() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && python_setup
|
[[ ${MERGE_TYPE} != binary ]] && python_setup
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user