summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-12 13:40:41 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-12 13:58:57 +0100
commitdd267937f5dbfbe6d353ffb95ac5f0dafde533fa (patch)
treecccc6853d8f2def1115f5c4e2fa2e2a7c238ee16 /eclass/python.eclass
parentsys-libs/libhugetlbfs: Fix perl module installation paths and perl dependency... (diff)
downloadgentoo-dd267937f5dbfbe6d353ffb95ac5f0dafde533fa.tar.gz
gentoo-dd267937f5dbfbe6d353ffb95ac5f0dafde533fa.tar.bz2
gentoo-dd267937f5dbfbe6d353ffb95ac5f0dafde533fa.zip
python.eclass: Remove outdated/broken sanity checks
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass14
1 files changed, 1 insertions, 13 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 592119fa7993..7627214ff940 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -345,19 +345,7 @@ _python_initialize_prefix_variables() {
unset PYTHON_SANITY_CHECKS_EXECUTED PYTHON_SKIP_SANITY_CHECKS
_python_initial_sanity_checks() {
- if [[ "$(declare -p PYTHON_SANITY_CHECKS_EXECUTED 2> /dev/null)" != "declare -- PYTHON_SANITY_CHECKS_EXECUTED="* || " ${FUNCNAME[@]:1} " =~ " "(python_set_active_version|python_pkg_setup)" " && -z "${PYTHON_SKIP_SANITY_CHECKS}" ]]; then
- # Ensure that /usr/bin/python and /usr/bin/python-config are valid.
- if [[ "$(readlink "${EPREFIX}/usr/bin/python")" != "python-wrapper" ]]; then
- eerror "'${EPREFIX}/usr/bin/python' is not a valid symlink."
- eerror "Use \`eselect python set \${python_interpreter}\` to fix this problem."
- die "'${EPREFIX}/usr/bin/python' is not a valid symlink"
- fi
- if [[ "$(<"${EPREFIX}/usr/bin/python-config")" != *"Gentoo python-config wrapper script"* ]]; then
- eerror "'${EPREFIX}/usr/bin/python-config' is not a valid script"
- eerror "Use \`eselect python set \${python_interpreter}\` to fix this problem."
- die "'${EPREFIX}/usr/bin/python-config' is not a valid script"
- fi
- fi
+ :
}
_python_final_sanity_checks() {