Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 2/2] python-utils-r1.eclass: Remove python.eclass guards
Date: Mon, 08 Mar 2021 07:56:20
Message-Id: 20210308075549.64339-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Remove distutils.eclass guards by "Michał Górny"
1 python.eclass is gone for a long time, ::progress is discontinued,
2 it should be safe to assume people will no longer be copying old stuff.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/python-utils-r1.eclass | 170 ----------------------------------
7 1 file changed, 170 deletions(-)
8
9 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
10 index 52d064e4af80..3036148b8383 100644
11 --- a/eclass/python-utils-r1.eclass
12 +++ b/eclass/python-utils-r1.eclass
13 @@ -907,8 +907,6 @@ _python_wrapper_setup() {
14 [[ ${impl} ]] || die "${FUNCNAME}: no impl nor EPYTHON specified."
15
16 if [[ ! -x ${workdir}/bin/python ]]; then
17 - _python_check_dead_variables
18 -
19 mkdir -p "${workdir}"/{bin,pkgconfig} || die
20
21 # Clean up, in case we were supposed to do a cheap update.
22 @@ -1301,173 +1299,5 @@ epytest() {
23 return ${?}
24 }
25
26 -# -- python.eclass functions --
27 -
28 -_python_check_dead_variables() {
29 - local v
30 -
31 - for v in PYTHON_DEPEND PYTHON_USE_WITH{,_OR,_OPT} {RESTRICT,SUPPORT}_PYTHON_ABIS
32 - do
33 - if [[ ${!v} ]]; then
34 - die "${v} is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#Ebuild_head"
35 - fi
36 - done
37 -
38 - for v in PYTHON_{CPPFLAGS,CFLAGS,CXXFLAGS,LDFLAGS}
39 - do
40 - if [[ ${!v} ]]; then
41 - die "${v} is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#PYTHON_CFLAGS"
42 - fi
43 - done
44 -
45 - for v in PYTHON_TESTS_RESTRICTED_ABIS PYTHON_EXPORT_PHASE_FUNCTIONS \
46 - PYTHON_VERSIONED_{SCRIPTS,EXECUTABLES} PYTHON_NONVERSIONED_EXECUTABLES
47 - do
48 - if [[ ${!v} ]]; then
49 - die "${v} is invalid for python-r1 suite"
50 - fi
51 - done
52 -
53 - for v in DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES DISTUTILS_SETUP_FILES \
54 - DISTUTILS_GLOBAL_OPTIONS DISTUTILS_SRC_TEST PYTHON_MODNAME
55 - do
56 - if [[ ${!v} ]]; then
57 - die "${v} is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#${v}"
58 - fi
59 - done
60 -
61 - if [[ ${DISTUTILS_DISABLE_TEST_DEPENDENCY} ]]; then
62 - die "${v} is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#DISTUTILS_SRC_TEST"
63 - fi
64 -
65 - # python.eclass::progress
66 - for v in PYTHON_BDEPEND PYTHON_MULTIPLE_ABIS PYTHON_ABI_TYPE \
67 - PYTHON_RESTRICTED_ABIS PYTHON_TESTS_FAILURES_TOLERANT_ABIS \
68 - PYTHON_CFFI_MODULES_GENERATION_COMMANDS
69 - do
70 - if [[ ${!v} ]]; then
71 - die "${v} is invalid for python-r1 suite"
72 - fi
73 - done
74 -}
75 -
76 -python_pkg_setup() {
77 - die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#pkg_setup"
78 -}
79 -
80 -python_convert_shebangs() {
81 - 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"
82 -}
83 -
84 -python_clean_py-compile_files() {
85 - die "${FUNCNAME}() is invalid for python-r1 suite"
86 -}
87 -
88 -python_clean_installation_image() {
89 - die "${FUNCNAME}() is invalid for python-r1 suite"
90 -}
91 -
92 -python_execute_function() {
93 - 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"
94 -}
95 -
96 -python_generate_wrapper_scripts() {
97 - die "${FUNCNAME}() is invalid for python-r1 suite"
98 -}
99 -
100 -python_merge_intermediate_installation_images() {
101 - die "${FUNCNAME}() is invalid for python-r1 suite"
102 -}
103 -
104 -python_set_active_version() {
105 - die "${FUNCNAME}() is invalid for python-r1 suite, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#pkg_setup"
106 -}
107 -
108 -python_need_rebuild() {
109 - die "${FUNCNAME}() is invalid for python-r1 suite"
110 -}
111 -
112 -PYTHON() {
113 - 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"
114 -}
115 -
116 -python_get_implementation() {
117 - die "${FUNCNAME}() is invalid for python-r1 suite"
118 -}
119 -
120 -python_get_implementational_package() {
121 - die "${FUNCNAME}() is invalid for python-r1 suite"
122 -}
123 -
124 -python_get_libdir() {
125 - die "${FUNCNAME}() is invalid for python-r1 suite"
126 -}
127 -
128 -python_get_library() {
129 - die "${FUNCNAME}() is invalid for python-r1 suite"
130 -}
131 -
132 -python_get_version() {
133 - die "${FUNCNAME}() is invalid for python-r1 suite"
134 -}
135 -
136 -python_get_implementation_and_version() {
137 - die "${FUNCNAME}() is invalid for python-r1 suite"
138 -}
139 -
140 -python_execute_nosetests() {
141 - die "${FUNCNAME}() is invalid for python-r1 suite"
142 -}
143 -
144 -python_execute_py.test() {
145 - die "${FUNCNAME}() is invalid for python-r1 suite"
146 -}
147 -
148 -python_execute_trial() {
149 - die "${FUNCNAME}() is invalid for python-r1 suite"
150 -}
151 -
152 -python_enable_pyc() {
153 - die "${FUNCNAME}() is invalid for python-r1 suite"
154 -}
155 -
156 -python_disable_pyc() {
157 - die "${FUNCNAME}() is invalid for python-r1 suite"
158 -}
159 -
160 -python_mod_optimize() {
161 - 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"
162 -}
163 -
164 -python_mod_cleanup() {
165 - 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"
166 -}
167 -
168 -# python.eclass::progress
169 -
170 -python_abi_depend() {
171 - die "${FUNCNAME}() is invalid for python-r1 suite"
172 -}
173 -
174 -python_install_executables() {
175 - die "${FUNCNAME}() is invalid for python-r1 suite"
176 -}
177 -
178 -python_get_extension_module_suffix() {
179 - die "${FUNCNAME}() is invalid for python-r1 suite"
180 -}
181 -
182 -python_byte-compile_modules() {
183 - die "${FUNCNAME}() is invalid for python-r1 suite"
184 -}
185 -
186 -python_clean_byte-compiled_modules() {
187 - die "${FUNCNAME}() is invalid for python-r1 suite"
188 -}
189 -
190 -python_generate_cffi_modules() {
191 - die "${FUNCNAME}() is invalid for python-r1 suite"
192 -}
193 -
194 _PYTHON_UTILS_R1=1
195 fi
196 --
197 2.30.1