Add die-replacements for python.eclass functions, to help finding mistakes in convers...
authorMichał Górny <mgorny@gentoo.org>
Sat, 27 Dec 2014 18:26:21 +0000 (18:26 +0000)
committerMichał Górny <mgorny@gentoo.org>
Sat, 27 Dec 2014 18:26:21 +0000 (18:26 +0000)
eclass/ChangeLog
eclass/python-utils-r1.eclass

index 5f6d6a6df69ec9c69ab199d2b3c44e57ab5ecef3..c1d6d54979cf7fffb938b7dfc8d573bb74c7d229 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1475 2014/12/27 18:07:31 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1476 2014/12/27 18:26:21 mgorny Exp $
+
+  27 Dec 2014; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass:
+  Add die-replacements for python.eclass functions, to help finding mistakes in
+  conversions.
 
   27 Dec 2014; Michał Górny <mgorny@gentoo.org> waf-utils.eclass:
   Add new API warnings.
index e44b5b0bf7313ced66641d5f9f24ee87ab30e6ee..173306685231eef8e577b95a17a96d6998e8485f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.67 2014/11/29 23:03:42 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.68 2014/12/27 18:26:21 mgorny Exp $
 
 # @ECLASS: python-utils-r1
 # @MAINTAINER:
@@ -1166,5 +1166,99 @@ python_export_utf8_locale() {
        return 0
 }
 
+# -- python.eclass functions --
+
+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_UTILS_R1=1
 fi