mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 00:46:58 +02:00
eclass/python-single-r1: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
c786af0b1b
commit
81bc0dc02d
@ -42,7 +42,7 @@ case ${EAPI} in
|
|||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! ${_PYTHON_SINGLE_R1_ECLASS} ]]; then
|
if [[ -z ${_PYTHON_SINGLE_R1_ECLASS} ]]; then
|
||||||
_PYTHON_SINGLE_R1_ECLASS=1
|
_PYTHON_SINGLE_R1_ECLASS=1
|
||||||
|
|
||||||
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
||||||
@ -269,7 +269,7 @@ unset -f _python_single_set_globals
|
|||||||
# REQUIRED_USE="doc? ( ^^ ( python_single_target_python2_7 ) )"
|
# REQUIRED_USE="doc? ( ^^ ( python_single_target_python2_7 ) )"
|
||||||
# @CODE
|
# @CODE
|
||||||
python_gen_useflags() {
|
python_gen_useflags() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
local impl matches=()
|
local impl matches=()
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ python_gen_useflags() {
|
|||||||
# dev-python/unittest2[python_targets_pypy(-)?,...] )"
|
# dev-python/unittest2[python_targets_pypy(-)?,...] )"
|
||||||
# @CODE
|
# @CODE
|
||||||
python_gen_cond_dep() {
|
python_gen_cond_dep() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
local impl matches=()
|
local impl matches=()
|
||||||
|
|
||||||
@ -367,7 +367,7 @@ python_gen_cond_dep() {
|
|||||||
# dev-python/pypy[xml(+)] ) )"
|
# dev-python/pypy[xml(+)] ) )"
|
||||||
# @CODE
|
# @CODE
|
||||||
python_gen_impl_dep() {
|
python_gen_impl_dep() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
local impl
|
local impl
|
||||||
local matches=()
|
local matches=()
|
||||||
@ -392,7 +392,7 @@ python_gen_impl_dep() {
|
|||||||
# Determine what the selected Python implementation is and set
|
# Determine what the selected Python implementation is and set
|
||||||
# the Python build environment up for it.
|
# the Python build environment up for it.
|
||||||
python_setup() {
|
python_setup() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
_python_sanity_checks
|
_python_sanity_checks
|
||||||
|
|
||||||
unset EPYTHON
|
unset EPYTHON
|
||||||
@ -448,7 +448,7 @@ python_setup() {
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Runs python_setup.
|
# Runs python_setup.
|
||||||
python-single-r1_pkg_setup() {
|
python-single-r1_pkg_setup() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && python_setup
|
[[ ${MERGE_TYPE} != binary ]] && python_setup
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user