mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
python-utils-r1.eclass: Remove python.eclass guards
python.eclass is gone for a long time, ::progress is discontinued, it should be safe to assume people will no longer be copying old stuff. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -907,8 +907,6 @@ _python_wrapper_setup() {
|
||||
[[ ${impl} ]] || die "${FUNCNAME}: no impl nor EPYTHON specified."
|
||||
|
||||
if [[ ! -x ${workdir}/bin/python ]]; then
|
||||
_python_check_dead_variables
|
||||
|
||||
mkdir -p "${workdir}"/{bin,pkgconfig} || die
|
||||
|
||||
# Clean up, in case we were supposed to do a cheap update.
|
||||
@@ -1301,173 +1299,5 @@ epytest() {
|
||||
return ${?}
|
||||
}
|
||||
|
||||
# -- python.eclass functions --
|
||||
|
||||
_python_check_dead_variables() {
|
||||
local v
|
||||
|
||||
for v in PYTHON_DEPEND PYTHON_USE_WITH{,_OR,_OPT} {RESTRICT,SUPPORT}_PYTHON_ABIS
|
||||
do
|
||||
if [[ ${!v} ]]; then
|
||||
die "${v} is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#Ebuild_head"
|
||||
fi
|
||||
done
|
||||
|
||||
for v in PYTHON_{CPPFLAGS,CFLAGS,CXXFLAGS,LDFLAGS}
|
||||
do
|
||||
if [[ ${!v} ]]; then
|
||||
die "${v} is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#PYTHON_CFLAGS"
|
||||
fi
|
||||
done
|
||||
|
||||
for v in PYTHON_TESTS_RESTRICTED_ABIS PYTHON_EXPORT_PHASE_FUNCTIONS \
|
||||
PYTHON_VERSIONED_{SCRIPTS,EXECUTABLES} PYTHON_NONVERSIONED_EXECUTABLES
|
||||
do
|
||||
if [[ ${!v} ]]; then
|
||||
die "${v} is invalid for python-r1 suite"
|
||||
fi
|
||||
done
|
||||
|
||||
for v in DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES DISTUTILS_SETUP_FILES \
|
||||
DISTUTILS_GLOBAL_OPTIONS DISTUTILS_SRC_TEST PYTHON_MODNAME
|
||||
do
|
||||
if [[ ${!v} ]]; then
|
||||
die "${v} is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#${v}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${DISTUTILS_DISABLE_TEST_DEPENDENCY} ]]; then
|
||||
die "${v} is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#DISTUTILS_SRC_TEST"
|
||||
fi
|
||||
|
||||
# python.eclass::progress
|
||||
for v in PYTHON_BDEPEND PYTHON_MULTIPLE_ABIS PYTHON_ABI_TYPE \
|
||||
PYTHON_RESTRICTED_ABIS PYTHON_TESTS_FAILURES_TOLERANT_ABIS \
|
||||
PYTHON_CFFI_MODULES_GENERATION_COMMANDS
|
||||
do
|
||||
if [[ ${!v} ]]; then
|
||||
die "${v} is invalid for python-r1 suite"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
python_pkg_setup() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#pkg_setup"
|
||||
}
|
||||
|
||||
python_convert_shebangs() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#python_convert_shebangs"
|
||||
}
|
||||
|
||||
python_clean_py-compile_files() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_clean_installation_image() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_execute_function() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#python_execute_function"
|
||||
}
|
||||
|
||||
python_generate_wrapper_scripts() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_merge_intermediate_installation_images() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_set_active_version() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#pkg_setup"
|
||||
}
|
||||
|
||||
python_need_rebuild() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
PYTHON() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#.24.28PYTHON.29.2C_.24.7BEPYTHON.7D"
|
||||
}
|
||||
|
||||
python_get_implementation() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_implementational_package() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_libdir() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_library() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_version() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_implementation_and_version() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_execute_nosetests() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_execute_py.test() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_execute_trial() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_enable_pyc() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_disable_pyc() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_mod_optimize() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#Python_byte-code_compilation"
|
||||
}
|
||||
|
||||
python_mod_cleanup() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#Python_byte-code_compilation"
|
||||
}
|
||||
|
||||
# python.eclass::progress
|
||||
|
||||
python_abi_depend() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_install_executables() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_get_extension_module_suffix() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_byte-compile_modules() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_clean_byte-compiled_modules() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
python_generate_cffi_modules() {
|
||||
die "${FUNCNAME}() is invalid for python-r1 suite"
|
||||
}
|
||||
|
||||
_PYTHON_UTILS_R1=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user