diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-28 18:35:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-29 09:14:36 +0100 |
commit | 602e59ea935007cce283a9d1ceb098acc21bc866 (patch) | |
tree | fbfa15c2340433777ffa2bb0345cfa4dbd43bc13 /eclass/python-r1.eclass | |
parent | x11-wm/openbox: python_export_best → python_setup (diff) | |
download | gentoo-602e59ea935007cce283a9d1ceb098acc21bc866.tar.gz gentoo-602e59ea935007cce283a9d1ceb098acc21bc866.tar.bz2 gentoo-602e59ea935007cce283a9d1ceb098acc21bc866.zip |
python-r1.eclass: Remove python_export_best
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13785
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r-- | eclass/python-r1.eclass | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 7665edbd87e3..335ae9fe6370 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -763,36 +763,6 @@ python_setup() { python_wrapper_setup } -# @FUNCTION: python_export_best -# @USAGE: [<variable>...] -# @DESCRIPTION: -# Find the best (most preferred) Python implementation enabled -# and export given variables for it. If no variables are provided, -# EPYTHON & PYTHON will be exported. -python_export_best() { - debug-print-function ${FUNCNAME} "${@}" - - [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}" - - eqawarn "python_export_best() is deprecated. Please use python_setup instead," - eqawarn "combined with python_export if necessary." - - [[ ${#} -gt 0 ]] || set -- EPYTHON PYTHON - - local best MULTIBUILD_VARIANTS - _python_obtain_impls - - _python_set_best() { - best=${MULTIBUILD_VARIANT} - } - multibuild_for_best_variant _python_set_best - unset -f _python_set_best - - debug-print "${FUNCNAME}: Best implementation is: ${best}" - python_export "${best}" "${@}" - python_wrapper_setup -} - # @FUNCTION: python_replicate_script # @USAGE: <path>... # @DESCRIPTION: |