1 |
commit: e1ac9809d47a37efdcc535cd6b6a6d41068833dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 27 16:09:30 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 27 16:11:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ac9809 |
7 |
|
8 |
dev-python/pypy: Remove old |
9 |
|
10 |
dev-python/pypy/Manifest | 2 - |
11 |
.../pypy/files/2.3-21_all_distutils_c++.patch | 321 --------------------- |
12 |
dev-python/pypy/files/2.3.1-shared-lib.patch | 11 - |
13 |
dev-python/pypy/pypy-2.4.0.ebuild | 233 --------------- |
14 |
dev-python/pypy/pypy-2.5.1.ebuild | 233 --------------- |
15 |
5 files changed, 800 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pypy/Manifest b/dev-python/pypy/Manifest |
18 |
index 8a06322..f5e2f43 100644 |
19 |
--- a/dev-python/pypy/Manifest |
20 |
+++ b/dev-python/pypy/Manifest |
21 |
@@ -1,5 +1,3 @@ |
22 |
-DIST pypy-2.4.0-src.tar.bz2 15495214 SHA256 38810007aee4885ca0703b566db6594dd7649adaaa287df7a1012f10e067740f SHA512 91b41ed80a6ff0d7b2b134a7802f098de35ffd2068dc3e477d27b0bc821c6d329eb8bcad4db4a5ff9ff429830d4abfbeb435a2a2d2d9bbc2c36f2d21af0b2e0c WHIRLPOOL affb14b805b2dcb8b579dd421bfb8276e80d3b31cea41bf57ad5dd9260e2e27d838b0303e4a3af5ca38b0b4f08ac88b142d6f1db20753bec6f8cbfdfc482099b |
23 |
-DIST pypy-2.5.1-src.tar.bz2 16740876 SHA256 ddb3a580b1ee99c5a699172d74be91c36dda9a38946d4731d8c6a63120a3ba2a SHA512 ac4cab47566d7d4e1a293a680e0dffa301c99a8329c2e68f645f186c0266cbe8f045a03e392c0cc2112a16178037cd978b7867ad073bf5dd957dd19f4c818067 WHIRLPOOL 6f16c4090780081dfe1d4642186262c66d4ac1a4b3b8311e573bfa6029eb7aac0483b3e48cad5ce03879391a4e316c0186d33fac5e86d0024ff20cc6d4dc0dd3 |
24 |
DIST pypy-2.6.0-src.tar.bz2 16858400 SHA256 9bf353f22d25e97a85a6d3766619966055edea1ea1b2218445d683a8ad0399d9 SHA512 82a6a44c0c551a1291215394610e5331cf83216b38ac9f1a79a3eab53ba2933b121c3154b58cead814c73a1da1fc95d895324bb0c43e8e0429438b0dea527cc4 WHIRLPOOL e536ff5d3b393c6834fd721f383318b5dcef79046f475b0f1fe737c67c56e8769cabc0a35f553da5dc475a255c5711de01bd6d42e541cabbab3b9e30f20c9a5c |
25 |
DIST pypy-4.0.0-src.tar.bz2 17244624 SHA256 acff480e44ce92acd057f2e786775af36dc3c2cd12e9efc60a1ac6a562ad7b4d SHA512 2bbdc2536a32b0aa28f7b12ec3d879ed28afe984fad38635bc3e1d950a9fe198cfbaf9b554f0fa245e7fd512ec7a76297f05a1d3e17f73fb49e8506561190f5b WHIRLPOOL e94bdf5e8ea2cbab8e25d37bb7cb36b9bae773ec051d603cfce784e0fd8e591ed16e6896f49d14d9ae094c5f613a0ba871380c8adc2a1cf0023157e3e2a51f52 |
26 |
DIST python-gentoo-patches-2.7.10-0.tar.xz 12892 SHA256 c9a838bd62ae50cc385da23a837acfd05f2b74e4f086c9c76eb4d3aa5366ef6d SHA512 5f100944635e360691dc0a2b340a906646c4ae9ee558246ddffc56e8b15d389f25f1fbdc1db4cc08e7d29560d04d66b058b3904902899d58ecae8c408ebdf056 WHIRLPOOL f69e9a518bb7ee50c1b262a21e70e1e2443f859ee6d2f4fa84421120dbd054a06ce8dd6cfea8512cbc64bce806322b879c25c561d5eb05e1ba6cc15035b373a9 |
27 |
|
28 |
diff --git a/dev-python/pypy/files/2.3-21_all_distutils_c++.patch b/dev-python/pypy/files/2.3-21_all_distutils_c++.patch |
29 |
deleted file mode 100644 |
30 |
index 2787360..0000000 |
31 |
--- a/dev-python/pypy/files/2.3-21_all_distutils_c++.patch |
32 |
+++ /dev/null |
33 |
@@ -1,321 +0,0 @@ |
34 |
-http://bugs.python.org/issue1222585 |
35 |
- |
36 |
---- Lib/distutils/cygwinccompiler.py |
37 |
-+++ Lib/distutils/cygwinccompiler.py |
38 |
-@@ -117,8 +117,10 @@ |
39 |
- # dllwrap 2.10.90 is buggy |
40 |
- if self.ld_version >= "2.10.90": |
41 |
- self.linker_dll = "gcc" |
42 |
-+ self.linker_dll_cxx = "g++" |
43 |
- else: |
44 |
- self.linker_dll = "dllwrap" |
45 |
-+ self.linker_dll_cxx = "dllwrap" |
46 |
- |
47 |
- # ld_version >= "2.13" support -shared so use it instead of |
48 |
- # -mdll -static |
49 |
-@@ -132,9 +134,13 @@ |
50 |
- self.set_executables(compiler='gcc -mcygwin -O -Wall', |
51 |
- compiler_so='gcc -mcygwin -mdll -O -Wall', |
52 |
- compiler_cxx='g++ -mcygwin -O -Wall', |
53 |
-+ compiler_so_cxx='g++ -mcygwin -mdll -O -Wall', |
54 |
- linker_exe='gcc -mcygwin', |
55 |
- linker_so=('%s -mcygwin %s' % |
56 |
-- (self.linker_dll, shared_option))) |
57 |
-+ (self.linker_dll, shared_option)), |
58 |
-+ linker_exe_cxx='g++ -mcygwin', |
59 |
-+ linker_so_cxx=('%s -mcygwin %s' % |
60 |
-+ (self.linker_dll_cxx, shared_option))) |
61 |
- |
62 |
- # cygwin and mingw32 need different sets of libraries |
63 |
- if self.gcc_version == "2.91.57": |
64 |
-@@ -160,8 +166,12 @@ |
65 |
- raise CompileError, msg |
66 |
- else: # for other files use the C-compiler |
67 |
- try: |
68 |
-- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + |
69 |
-- extra_postargs) |
70 |
-+ if self.detect_language(src) == 'c++': |
71 |
-+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] + |
72 |
-+ extra_postargs) |
73 |
-+ else: |
74 |
-+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + |
75 |
-+ extra_postargs) |
76 |
- except DistutilsExecError, msg: |
77 |
- raise CompileError, msg |
78 |
- |
79 |
-@@ -327,9 +337,14 @@ |
80 |
- self.set_executables(compiler='gcc%s -O -Wall' % no_cygwin, |
81 |
- compiler_so='gcc%s -mdll -O -Wall' % no_cygwin, |
82 |
- compiler_cxx='g++%s -O -Wall' % no_cygwin, |
83 |
-+ compiler_so_cxx='g++%s -mdll -O -Wall' % no_cygwin, |
84 |
- linker_exe='gcc%s' % no_cygwin, |
85 |
- linker_so='%s%s %s %s' |
86 |
- % (self.linker_dll, no_cygwin, |
87 |
-+ shared_option, entry_point), |
88 |
-+ linker_exe_cxx='g++%s' % no_cygwin, |
89 |
-+ linker_so_cxx='%s%s %s %s' |
90 |
-+ % (self.linker_dll_cxx, no_cygwin, |
91 |
- shared_option, entry_point)) |
92 |
- # Maybe we should also append -mthreads, but then the finished |
93 |
- # dlls need another dll (mingwm10.dll see Mingw32 docs) |
94 |
---- Lib/distutils/emxccompiler.py |
95 |
-+++ Lib/distutils/emxccompiler.py |
96 |
-@@ -65,8 +65,12 @@ |
97 |
- # XXX optimization, warnings etc. should be customizable. |
98 |
- self.set_executables(compiler='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall', |
99 |
- compiler_so='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall', |
100 |
-+ compiler_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall', |
101 |
-+ compiler_so_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall', |
102 |
- linker_exe='gcc -Zomf -Zmt -Zcrtdll', |
103 |
-- linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll') |
104 |
-+ linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll', |
105 |
-+ linker_exe_cxx='g++ -Zomf -Zmt -Zcrtdll', |
106 |
-+ linker_so_cxx='g++ -Zomf -Zmt -Zcrtdll -Zdll') |
107 |
- |
108 |
- # want the gcc library statically linked (so that we don't have |
109 |
- # to distribute a version dependent on the compiler we have) |
110 |
-@@ -83,8 +87,12 @@ |
111 |
- raise CompileError, msg |
112 |
- else: # for other files use the C-compiler |
113 |
- try: |
114 |
-- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + |
115 |
-- extra_postargs) |
116 |
-+ if self.detect_language(src) == 'c++': |
117 |
-+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] + |
118 |
-+ extra_postargs) |
119 |
-+ else: |
120 |
-+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + |
121 |
-+ extra_postargs) |
122 |
- except DistutilsExecError, msg: |
123 |
- raise CompileError, msg |
124 |
- |
125 |
---- Lib/distutils/sysconfig_cpython.py |
126 |
-+++ Lib/distutils/sysconfig_cpython.py |
127 |
-@@ -170,10 +170,12 @@ |
128 |
- _osx_support.customize_compiler(_config_vars) |
129 |
- _config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True' |
130 |
- |
131 |
-- (cc, cxx, opt, cflags, ccshared, ldshared, so_ext, ar, ar_flags) = \ |
132 |
-- get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS', |
133 |
-- 'CCSHARED', 'LDSHARED', 'SO', 'AR', |
134 |
-- 'ARFLAGS') |
135 |
-+ (cc, cxx, ccshared, ldshared, ldcxxshared, so_ext, ar, ar_flags) = \ |
136 |
-+ get_config_vars('CC', 'CXX', 'CCSHARED', 'LDSHARED', 'LDCXXSHARED', |
137 |
-+ 'SO', 'AR', 'ARFLAGS') |
138 |
-+ |
139 |
-+ cflags = '' |
140 |
-+ cxxflags = '' |
141 |
- |
142 |
- if 'CC' in os.environ: |
143 |
- newcc = os.environ['CC'] |
144 |
-@@ -188,19 +190,27 @@ |
145 |
- cxx = os.environ['CXX'] |
146 |
- if 'LDSHARED' in os.environ: |
147 |
- ldshared = os.environ['LDSHARED'] |
148 |
-+ if 'LDCXXSHARED' in os.environ: |
149 |
-+ ldcxxshared = os.environ['LDCXXSHARED'] |
150 |
- if 'CPP' in os.environ: |
151 |
- cpp = os.environ['CPP'] |
152 |
- else: |
153 |
- cpp = cc + " -E" # not always |
154 |
- if 'LDFLAGS' in os.environ: |
155 |
- ldshared = ldshared + ' ' + os.environ['LDFLAGS'] |
156 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS'] |
157 |
- if 'CFLAGS' in os.environ: |
158 |
-- cflags = opt + ' ' + os.environ['CFLAGS'] |
159 |
-+ cflags = os.environ['CFLAGS'] |
160 |
- ldshared = ldshared + ' ' + os.environ['CFLAGS'] |
161 |
-+ if 'CXXFLAGS' in os.environ: |
162 |
-+ cxxflags = os.environ['CXXFLAGS'] |
163 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS'] |
164 |
- if 'CPPFLAGS' in os.environ: |
165 |
- cpp = cpp + ' ' + os.environ['CPPFLAGS'] |
166 |
- cflags = cflags + ' ' + os.environ['CPPFLAGS'] |
167 |
-+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS'] |
168 |
- ldshared = ldshared + ' ' + os.environ['CPPFLAGS'] |
169 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS'] |
170 |
- if 'AR' in os.environ: |
171 |
- ar = os.environ['AR'] |
172 |
- if 'ARFLAGS' in os.environ: |
173 |
-@@ -209,13 +219,17 @@ |
174 |
- archiver = ar + ' ' + ar_flags |
175 |
- |
176 |
- cc_cmd = cc + ' ' + cflags |
177 |
-+ cxx_cmd = cxx + ' ' + cxxflags |
178 |
- compiler.set_executables( |
179 |
- preprocessor=cpp, |
180 |
- compiler=cc_cmd, |
181 |
- compiler_so=cc_cmd + ' ' + ccshared, |
182 |
-- compiler_cxx=cxx, |
183 |
-+ compiler_cxx=cxx_cmd, |
184 |
-+ compiler_so_cxx=cxx_cmd + ' ' + ccshared, |
185 |
- linker_so=ldshared, |
186 |
- linker_exe=cc, |
187 |
-+ linker_so_cxx=ldcxxshared, |
188 |
-+ linker_exe_cxx=cxx, |
189 |
- archiver=archiver) |
190 |
- |
191 |
- compiler.shared_lib_extension = so_ext |
192 |
---- Lib/distutils/unixccompiler.py |
193 |
-+++ Lib/distutils/unixccompiler.py |
194 |
-@@ -55,14 +55,17 @@ |
195 |
- # are pretty generic; they will probably have to be set by an outsider |
196 |
- # (eg. using information discovered by the sysconfig about building |
197 |
- # Python extensions). |
198 |
-- executables = {'preprocessor' : None, |
199 |
-- 'compiler' : ["cc"], |
200 |
-- 'compiler_so' : ["cc"], |
201 |
-- 'compiler_cxx' : ["cc"], |
202 |
-- 'linker_so' : ["cc", "-shared"], |
203 |
-- 'linker_exe' : ["cc"], |
204 |
-- 'archiver' : ["ar", "-cr"], |
205 |
-- 'ranlib' : None, |
206 |
-+ executables = {'preprocessor' : None, |
207 |
-+ 'compiler' : ["cc"], |
208 |
-+ 'compiler_so' : ["cc"], |
209 |
-+ 'compiler_cxx' : ["c++"], |
210 |
-+ 'compiler_so_cxx' : ["c++"], |
211 |
-+ 'linker_so' : ["cc", "-shared"], |
212 |
-+ 'linker_exe' : ["cc"], |
213 |
-+ 'linker_so_cxx' : ["c++", "-shared"], |
214 |
-+ 'linker_exe_cxx' : ["c++"], |
215 |
-+ 'archiver' : ["ar", "-cr"], |
216 |
-+ 'ranlib' : None, |
217 |
- } |
218 |
- |
219 |
- if sys.platform[:6] == "darwin": |
220 |
-@@ -112,12 +115,19 @@ |
221 |
- |
222 |
- def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): |
223 |
- compiler_so = self.compiler_so |
224 |
-+ compiler_so_cxx = self.compiler_so_cxx |
225 |
- if sys.platform == 'darwin': |
226 |
- compiler_so = _osx_support.compiler_fixup(compiler_so, |
227 |
- cc_args + extra_postargs) |
228 |
-+ compiler_so_cxx = _osx_support.compiler_fixup(compiler_so_cxx, |
229 |
-+ cc_args + extra_postargs) |
230 |
- try: |
231 |
-- self.spawn(compiler_so + cc_args + [src, '-o', obj] + |
232 |
-- extra_postargs) |
233 |
-+ if self.detect_language(src) == 'c++': |
234 |
-+ self.spawn(compiler_so_cxx + cc_args + [src, '-o', obj] + |
235 |
-+ extra_postargs) |
236 |
-+ else: |
237 |
-+ self.spawn(compiler_so + cc_args + [src, '-o', obj] + |
238 |
-+ extra_postargs) |
239 |
- except DistutilsExecError, msg: |
240 |
- raise CompileError, msg |
241 |
- |
242 |
-@@ -174,23 +184,16 @@ |
243 |
- ld_args.extend(extra_postargs) |
244 |
- self.mkpath(os.path.dirname(output_filename)) |
245 |
- try: |
246 |
-- if target_desc == CCompiler.EXECUTABLE: |
247 |
-- linker = self.linker_exe[:] |
248 |
-+ if target_lang == "c++": |
249 |
-+ if target_desc == CCompiler.EXECUTABLE: |
250 |
-+ linker = self.linker_exe_cxx[:] |
251 |
-+ else: |
252 |
-+ linker = self.linker_so_cxx[:] |
253 |
- else: |
254 |
-- linker = self.linker_so[:] |
255 |
-- if target_lang == "c++" and self.compiler_cxx: |
256 |
-- # skip over environment variable settings if /usr/bin/env |
257 |
-- # is used to set up the linker's environment. |
258 |
-- # This is needed on OSX. Note: this assumes that the |
259 |
-- # normal and C++ compiler have the same environment |
260 |
-- # settings. |
261 |
-- i = 0 |
262 |
-- if os.path.basename(linker[0]) == "env": |
263 |
-- i = 1 |
264 |
-- while '=' in linker[i]: |
265 |
-- i = i + 1 |
266 |
-- |
267 |
-- linker[i] = self.compiler_cxx[i] |
268 |
-+ if target_desc == CCompiler.EXECUTABLE: |
269 |
-+ linker = self.linker_exe[:] |
270 |
-+ else: |
271 |
-+ linker = self.linker_so[:] |
272 |
- |
273 |
- if sys.platform == 'darwin': |
274 |
- linker = _osx_support.compiler_fixup(linker, ld_args) |
275 |
---- Lib/_osx_support.py |
276 |
-+++ Lib/_osx_support.py |
277 |
-@@ -14,13 +14,13 @@ |
278 |
- # configuration variables that may contain universal build flags, |
279 |
- # like "-arch" or "-isdkroot", that may need customization for |
280 |
- # the user environment |
281 |
--_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'LDFLAGS', 'CPPFLAGS', 'BASECFLAGS', |
282 |
-- 'BLDSHARED', 'LDSHARED', 'CC', 'CXX', |
283 |
-- 'PY_CFLAGS', 'PY_LDFLAGS', 'PY_CPPFLAGS', |
284 |
-- 'PY_CORE_CFLAGS') |
285 |
-+_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'CXXFLAGS', 'LDFLAGS', 'CPPFLAGS', |
286 |
-+ 'BASECFLAGS', 'BLDSHARED', 'LDSHARED', 'LDCXXSHARED', |
287 |
-+ 'CC', 'CXX', 'PY_CFLAGS', 'PY_LDFLAGS', |
288 |
-+ 'PY_CPPFLAGS', 'PY_CORE_CFLAGS') |
289 |
- |
290 |
- # configuration variables that may contain compiler calls |
291 |
--_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'CC', 'CXX') |
292 |
-+_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'LDCXXSHARED', 'CC', 'CXX') |
293 |
- |
294 |
- # prefix added to original configuration variable names |
295 |
- _INITPRE = '_OSX_SUPPORT_INITIAL_' |
296 |
---- a/distutils/sysconfig_pypy.py |
297 |
-+++ b/distutils/sysconfig_pypy.py |
298 |
-@@ -123,7 +123,55 @@ |
299 |
- optional C speedup components. |
300 |
- """ |
301 |
- if compiler.compiler_type == "unix": |
302 |
-- compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit']) |
303 |
-+ cc = ' '.join(compiler.compiler) |
304 |
-+ cxx = ' '.join(compiler.compiler_cxx) |
305 |
-+ ldshared = ' '.join(compiler.linker_so) |
306 |
-+ ldcxxshared = ' '.join(compiler.linker_so_cxx) |
307 |
-+ |
308 |
-+ cflags = '' |
309 |
-+ cxxflags = '' |
310 |
-+ ccshared = '-fPIC' |
311 |
-+ |
312 |
-+ if 'CC' in os.environ: |
313 |
-+ cc = os.environ['CC'] |
314 |
-+ if 'CXX' in os.environ: |
315 |
-+ cxx = os.environ['CXX'] |
316 |
-+ if 'LDSHARED' in os.environ: |
317 |
-+ ldshared = os.environ['LDSHARED'] |
318 |
-+ if 'LDCXXSHARED' in os.environ: |
319 |
-+ ldcxxshared = os.environ['LDCXXSHARED'] |
320 |
-+ if 'CPP' in os.environ: |
321 |
-+ cpp = os.environ['CPP'] |
322 |
-+ else: |
323 |
-+ cpp = cc + " -E" # not always |
324 |
-+ if 'LDFLAGS' in os.environ: |
325 |
-+ ldshared = ldshared + ' ' + os.environ['LDFLAGS'] |
326 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS'] |
327 |
-+ if 'CFLAGS' in os.environ: |
328 |
-+ cflags = os.environ['CFLAGS'] |
329 |
-+ ldshared = ldshared + ' ' + os.environ['CFLAGS'] |
330 |
-+ if 'CXXFLAGS' in os.environ: |
331 |
-+ cxxflags = os.environ['CXXFLAGS'] |
332 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS'] |
333 |
-+ if 'CPPFLAGS' in os.environ: |
334 |
-+ cpp = cpp + ' ' + os.environ['CPPFLAGS'] |
335 |
-+ cflags = cflags + ' ' + os.environ['CPPFLAGS'] |
336 |
-+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS'] |
337 |
-+ ldshared = ldshared + ' ' + os.environ['CPPFLAGS'] |
338 |
-+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS'] |
339 |
-+ |
340 |
-+ cc_cmd = cc + ' ' + cflags |
341 |
-+ cxx_cmd = cxx + ' ' + cxxflags |
342 |
-+ compiler.set_executables( |
343 |
-+ preprocessor=cpp, |
344 |
-+ compiler=cc_cmd, |
345 |
-+ compiler_so=cc_cmd + ' ' + ccshared, |
346 |
-+ compiler_cxx=cxx_cmd, |
347 |
-+ compiler_so_cxx=cxx_cmd + ' ' + ccshared, |
348 |
-+ linker_so=ldshared, |
349 |
-+ linker_exe=cc, |
350 |
-+ linker_so_cxx=ldcxxshared, |
351 |
-+ linker_exe_cxx=cxx) |
352 |
- compiler.shared_lib_extension = get_config_var('SO') |
353 |
- if "CPPFLAGS" in os.environ: |
354 |
- cppflags = shlex.split(os.environ["CPPFLAGS"]) |
355 |
|
356 |
diff --git a/dev-python/pypy/files/2.3.1-shared-lib.patch b/dev-python/pypy/files/2.3.1-shared-lib.patch |
357 |
deleted file mode 100644 |
358 |
index ae1139f..0000000 |
359 |
--- a/dev-python/pypy/files/2.3.1-shared-lib.patch |
360 |
+++ /dev/null |
361 |
@@ -1,11 +0,0 @@ |
362 |
---- rpython/translator/platform/posix.py |
363 |
-+++ rpython/translator/platform/posix.py |
364 |
-@@ -180,7 +180,7 @@ |
365 |
- 'int main(int argc, char* argv[]) ' |
366 |
- '{ return $(PYPY_MAIN_FUNCTION)(argc, argv); }" > $@') |
367 |
- m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.o'], |
368 |
-- '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@') |
369 |
-+ '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) \'-Wl,-rpath,$$ORIGIN\' -o $@') |
370 |
- |
371 |
- return m |
372 |
- |
373 |
|
374 |
diff --git a/dev-python/pypy/pypy-2.4.0.ebuild b/dev-python/pypy/pypy-2.4.0.ebuild |
375 |
deleted file mode 100644 |
376 |
index 9442c70..0000000 |
377 |
--- a/dev-python/pypy/pypy-2.4.0.ebuild |
378 |
+++ /dev/null |
379 |
@@ -1,233 +0,0 @@ |
380 |
-# Copyright 1999-2015 Gentoo Foundation |
381 |
-# Distributed under the terms of the GNU General Public License v2 |
382 |
-# $Id$ |
383 |
- |
384 |
-EAPI=5 |
385 |
- |
386 |
-PYTHON_COMPAT=( python2_7 pypy ) |
387 |
-inherit check-reqs eutils multilib multiprocessing pax-utils \ |
388 |
- python-any-r1 toolchain-funcs versionator |
389 |
- |
390 |
-DESCRIPTION="A fast, compliant alternative implementation of the Python language" |
391 |
-HOMEPAGE="http://pypy.org/" |
392 |
-SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${P}-src.tar.bz2" |
393 |
- |
394 |
-LICENSE="MIT" |
395 |
-SLOT="0/$(get_version_component_range 1-2 ${PV})" |
396 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
397 |
-IUSE="bzip2 doc gdbm +jit low-memory ncurses sandbox shadowstack sqlite cpu_flags_x86_sse2 tk" |
398 |
- |
399 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
400 |
- virtual/libffi:0= |
401 |
- virtual/libintl:0= |
402 |
- dev-libs/expat:0= |
403 |
- dev-libs/openssl:0= |
404 |
- bzip2? ( app-arch/bzip2:0= ) |
405 |
- gdbm? ( sys-libs/gdbm:0= ) |
406 |
- ncurses? ( =sys-libs/ncurses-5*:0= ) |
407 |
- sqlite? ( dev-db/sqlite:3= ) |
408 |
- tk? ( |
409 |
- dev-lang/tk:0= |
410 |
- dev-tcltk/tix:0= |
411 |
- ) |
412 |
- !dev-python/pypy-bin:0" |
413 |
-DEPEND="${RDEPEND} |
414 |
- doc? ( dev-python/sphinx ) |
415 |
- ${PYTHON_DEPS}" |
416 |
-PDEPEND="app-admin/python-updater" |
417 |
- |
418 |
-S="${WORKDIR}/${P}-src" |
419 |
- |
420 |
-pkg_pretend() { |
421 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
422 |
- if use low-memory; then |
423 |
- if ! python_is_installed pypy; then |
424 |
- eerror "USE=low-memory requires a (possibly old) version of dev-python/pypy" |
425 |
- eerror "or dev-python/pypy-bin being installed. Please install it using e.g.:" |
426 |
- eerror |
427 |
- eerror " $ emerge -1v dev-python/pypy-bin" |
428 |
- eerror |
429 |
- eerror "before attempting to build dev-python/pypy[low-memory]." |
430 |
- die "dev-python/pypy-bin (or dev-python/pypy) needs to be installed for USE=low-memory" |
431 |
- fi |
432 |
- |
433 |
- CHECKREQS_MEMORY="1750M" |
434 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
435 |
- else |
436 |
- CHECKREQS_MEMORY="3G" |
437 |
- use amd64 && CHECKREQS_MEMORY="6G" |
438 |
- fi |
439 |
- |
440 |
- check-reqs_pkg_pretend |
441 |
- fi |
442 |
-} |
443 |
- |
444 |
-pkg_setup() { |
445 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
446 |
- pkg_pretend |
447 |
- |
448 |
- if python_is_installed pypy; then |
449 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] || use low-memory; then |
450 |
- einfo "Using already-installed PyPy to perform the translation." |
451 |
- local EPYTHON=pypy |
452 |
- else |
453 |
- einfo "Using ${EPYTHON} to perform the translation. Please note that upstream" |
454 |
- einfo "recommends using PyPy for that. If you wish to do so, please unset" |
455 |
- einfo "the EPYTHON variable." |
456 |
- fi |
457 |
- fi |
458 |
- |
459 |
- python-any-r1_pkg_setup |
460 |
- fi |
461 |
-} |
462 |
- |
463 |
-src_prepare() { |
464 |
- epatch "${FILESDIR}/1.9-scripts-location.patch" \ |
465 |
- "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" \ |
466 |
- "${FILESDIR}"/2.3.1-shared-lib.patch # 517002 |
467 |
- |
468 |
- pushd lib-python/2.7 > /dev/null || die |
469 |
- epatch "${FILESDIR}/2.3-21_all_distutils_c++.patch" |
470 |
- popd > /dev/null || die |
471 |
- |
472 |
- epatch_user |
473 |
-} |
474 |
- |
475 |
-src_compile() { |
476 |
- tc-export CC |
477 |
- |
478 |
- local jit_backend |
479 |
- if use jit; then |
480 |
- jit_backend='--jit-backend=' |
481 |
- |
482 |
- # We only need the explicit sse2 switch for x86. |
483 |
- # On other arches we can rely on autodetection which uses |
484 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
485 |
- # the modern values... |
486 |
- |
487 |
- if use x86; then |
488 |
- if use cpu_flags_x86_sse2; then |
489 |
- jit_backend+=x86 |
490 |
- else |
491 |
- jit_backend+=x86-without-sse2 |
492 |
- fi |
493 |
- else |
494 |
- jit_backend+=auto |
495 |
- fi |
496 |
- fi |
497 |
- |
498 |
- local args=( |
499 |
- --shared |
500 |
- $(usex jit -Ojit -O2) |
501 |
- $(usex shadowstack --gcrootfinder=shadowstack '') |
502 |
- $(usex sandbox --sandbox '') |
503 |
- |
504 |
- ${jit_backend} |
505 |
- --make-jobs=$(makeopts_jobs) |
506 |
- |
507 |
- pypy/goal/targetpypystandalone |
508 |
- ) |
509 |
- |
510 |
- # Avoid linking against libraries disabled by use flags |
511 |
- local opts=( |
512 |
- bzip2:bz2 |
513 |
- ncurses:_minimal_curses |
514 |
- ) |
515 |
- |
516 |
- local opt |
517 |
- for opt in "${opts[@]}"; do |
518 |
- local flag=${opt%:*} |
519 |
- local mod=${opt#*:} |
520 |
- |
521 |
- args+=( |
522 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
523 |
- ) |
524 |
- done |
525 |
- |
526 |
- local interp=( "${PYTHON}" ) |
527 |
- if use low-memory; then |
528 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
529 |
- "${PYTHON}" --jit loop_longevity=300 ) |
530 |
- fi |
531 |
- |
532 |
- set -- "${interp[@]}" rpython/bin/rpython --batch "${args[@]}" |
533 |
- echo -e "\033[1m${@}\033[0m" |
534 |
- "${@}" || die "compile error" |
535 |
- |
536 |
- use doc && emake -C pypy/doc/ html |
537 |
- pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" |
538 |
-} |
539 |
- |
540 |
-src_test() { |
541 |
- # (unset) |
542 |
- local -x PYTHONDONTWRITEBYTECODE |
543 |
- |
544 |
- ./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die |
545 |
-} |
546 |
- |
547 |
-src_install() { |
548 |
- einfo "Installing PyPy ..." |
549 |
- insinto "/usr/$(get_libdir)/pypy" |
550 |
- doins -r include lib_pypy lib-python pypy-c libpypy-c.so |
551 |
- fperms a+x ${INSDESTTREE}/pypy-c ${INSDESTTREE}/libpypy-c.so |
552 |
- pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" "${ED%/}${INSDESTTREE}/libpypy-c.so" |
553 |
- dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy |
554 |
- dodoc README.rst |
555 |
- |
556 |
- if ! use gdbm; then |
557 |
- rm -r "${ED%/}${INSDESTTREE}"/lib_pypy/gdbm.py \ |
558 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_gdbm.py || die |
559 |
- fi |
560 |
- if ! use sqlite; then |
561 |
- rm -r "${ED%/}${INSDESTTREE}"/lib-python/*2.7/sqlite3 \ |
562 |
- "${ED%/}${INSDESTTREE}"/lib_pypy/_sqlite3.py \ |
563 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_sqlite.py || die |
564 |
- fi |
565 |
- if ! use tk; then |
566 |
- rm -r "${ED%/}${INSDESTTREE}"/lib-python/*2.7/{idlelib,lib-tk} \ |
567 |
- "${ED%/}${INSDESTTREE}"/lib_pypy/_tkinter \ |
568 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die |
569 |
- fi |
570 |
- |
571 |
- # Install docs |
572 |
- use doc && dohtml -r pypy/doc/_build/html/ |
573 |
- |
574 |
- einfo "Generating caches and byte-compiling ..." |
575 |
- |
576 |
- local -x PYTHON=${ED%/}${INSDESTTREE}/pypy-c |
577 |
- local -x LD_LIBRARY_PATH="${ED%/}${INSDESTTREE}" |
578 |
- # we can't use eclass function since PyPy is dumb and always gives |
579 |
- # paths relative to the interpreter |
580 |
- local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages |
581 |
- python_export pypy EPYTHON |
582 |
- |
583 |
- echo "EPYTHON='${EPYTHON}'" > epython.py || die |
584 |
- python_domodule epython.py |
585 |
- |
586 |
- # Generate Grammar and PatternGrammar pickles. |
587 |
- "${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \ |
588 |
- || die "Generation of Grammar and PatternGrammar pickles failed" |
589 |
- |
590 |
- # Generate cffi cache |
591 |
- # Please keep in sync with pypy/tool/release/package.py! |
592 |
- "${PYTHON}" -c "import syslog" || die "Failed to import syslog (cffi)" |
593 |
- if use gdbm; then |
594 |
- "${PYTHON}" -c "import gdbm" || die "Failed to import gdbm (cffi)" |
595 |
- fi |
596 |
- if use ncurses; then |
597 |
- "${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)" |
598 |
- fi |
599 |
- if use sqlite; then |
600 |
- "${PYTHON}" -c "import _sqlite3" || die "Failed to import _sqlite3 (cffi)" |
601 |
- fi |
602 |
- if use tk; then |
603 |
- "${PYTHON}" -c "import _tkinter" || die "Failed to import _tkinter (cffi)" |
604 |
- fi |
605 |
- |
606 |
- # Cleanup temporary objects |
607 |
- find "${ED%/}${INSDESTTREE}" -name "_cffi_*.[co]" -delete || die |
608 |
- find "${ED%/}${INSDESTTREE}" -type d -empty -delete || die |
609 |
- |
610 |
- # compile the installed modules |
611 |
- python_optimize "${ED%/}${INSDESTTREE}" |
612 |
-} |
613 |
|
614 |
diff --git a/dev-python/pypy/pypy-2.5.1.ebuild b/dev-python/pypy/pypy-2.5.1.ebuild |
615 |
deleted file mode 100644 |
616 |
index d12930c..0000000 |
617 |
--- a/dev-python/pypy/pypy-2.5.1.ebuild |
618 |
+++ /dev/null |
619 |
@@ -1,233 +0,0 @@ |
620 |
-# Copyright 1999-2015 Gentoo Foundation |
621 |
-# Distributed under the terms of the GNU General Public License v2 |
622 |
-# $Id$ |
623 |
- |
624 |
-EAPI=5 |
625 |
- |
626 |
-PYTHON_COMPAT=( python2_7 pypy ) |
627 |
-inherit check-reqs eutils multilib multiprocessing pax-utils python-any-r1 toolchain-funcs versionator |
628 |
- |
629 |
-DESCRIPTION="A fast, compliant alternative implementation of the Python language" |
630 |
-HOMEPAGE="http://pypy.org/" |
631 |
-SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${P}-src.tar.bz2" |
632 |
- |
633 |
-LICENSE="MIT" |
634 |
-SLOT="0/$(get_version_component_range 1-2 ${PV})" |
635 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
636 |
-IUSE="bzip2 doc gdbm +jit low-memory ncurses sandbox shadowstack sqlite cpu_flags_x86_sse2 test tk" |
637 |
- |
638 |
-RDEPEND=">=sys-libs/zlib-1.1.3:0= |
639 |
- virtual/libffi:0= |
640 |
- virtual/libintl:0= |
641 |
- dev-libs/expat:0= |
642 |
- dev-libs/openssl:0=[-bindist] |
643 |
- bzip2? ( app-arch/bzip2:0= ) |
644 |
- gdbm? ( sys-libs/gdbm:0= ) |
645 |
- ncurses? ( =sys-libs/ncurses-5*:0= ) |
646 |
- sqlite? ( dev-db/sqlite:3= ) |
647 |
- tk? ( |
648 |
- dev-lang/tk:0= |
649 |
- dev-tcltk/tix:0= |
650 |
- ) |
651 |
- !dev-python/pypy-bin:0" |
652 |
-DEPEND="${RDEPEND} |
653 |
- doc? ( dev-python/sphinx ) |
654 |
- ${PYTHON_DEPS} |
655 |
- test? ( dev-python/pytest )" |
656 |
-PDEPEND="app-admin/python-updater" |
657 |
- |
658 |
-S="${WORKDIR}/${P}-src" |
659 |
- |
660 |
-pkg_pretend() { |
661 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
662 |
- if use low-memory; then |
663 |
- if ! python_is_installed pypy; then |
664 |
- eerror "USE=low-memory requires a (possibly old) version of dev-python/pypy" |
665 |
- eerror "or dev-python/pypy-bin being installed. Please install it using e.g.:" |
666 |
- eerror |
667 |
- eerror " $ emerge -1v dev-python/pypy-bin" |
668 |
- eerror |
669 |
- eerror "before attempting to build dev-python/pypy[low-memory]." |
670 |
- die "dev-python/pypy-bin (or dev-python/pypy) needs to be installed for USE=low-memory" |
671 |
- fi |
672 |
- |
673 |
- CHECKREQS_MEMORY="1750M" |
674 |
- use amd64 && CHECKREQS_MEMORY="3500M" |
675 |
- else |
676 |
- CHECKREQS_MEMORY="3G" |
677 |
- use amd64 && CHECKREQS_MEMORY="6G" |
678 |
- fi |
679 |
- |
680 |
- check-reqs_pkg_pretend |
681 |
- fi |
682 |
-} |
683 |
- |
684 |
-pkg_setup() { |
685 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
686 |
- pkg_pretend |
687 |
- |
688 |
- if python_is_installed pypy; then |
689 |
- if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] || use low-memory; then |
690 |
- einfo "Using already-installed PyPy to perform the translation." |
691 |
- local EPYTHON=pypy |
692 |
- else |
693 |
- einfo "Using ${EPYTHON} to perform the translation. Please note that upstream" |
694 |
- einfo "recommends using PyPy for that. If you wish to do so, please unset" |
695 |
- einfo "the EPYTHON variable." |
696 |
- fi |
697 |
- fi |
698 |
- |
699 |
- python-any-r1_pkg_setup |
700 |
- fi |
701 |
-} |
702 |
- |
703 |
-src_prepare() { |
704 |
- epatch "${FILESDIR}/1.9-scripts-location.patch" \ |
705 |
- "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" \ |
706 |
- "${FILESDIR}"/2.5.0-shared-lib.patch # 517002 |
707 |
- |
708 |
- pushd lib-python/2.7 > /dev/null || die |
709 |
- epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch |
710 |
- popd > /dev/null || die |
711 |
- |
712 |
- epatch_user |
713 |
-} |
714 |
- |
715 |
-src_compile() { |
716 |
- tc-export CC |
717 |
- |
718 |
- local jit_backend |
719 |
- if use jit; then |
720 |
- jit_backend='--jit-backend=' |
721 |
- |
722 |
- # We only need the explicit sse2 switch for x86. |
723 |
- # On other arches we can rely on autodetection which uses |
724 |
- # compiler macros. Plus, --jit-backend= doesn't accept all |
725 |
- # the modern values... |
726 |
- |
727 |
- if use x86; then |
728 |
- if use cpu_flags_x86_sse2; then |
729 |
- jit_backend+=x86 |
730 |
- else |
731 |
- jit_backend+=x86-without-sse2 |
732 |
- fi |
733 |
- else |
734 |
- jit_backend+=auto |
735 |
- fi |
736 |
- fi |
737 |
- |
738 |
- local args=( |
739 |
- --shared |
740 |
- $(usex jit -Ojit -O2) |
741 |
- $(usex shadowstack --gcrootfinder=shadowstack '') |
742 |
- $(usex sandbox --sandbox '') |
743 |
- |
744 |
- ${jit_backend} |
745 |
- --make-jobs=$(makeopts_jobs) |
746 |
- |
747 |
- pypy/goal/targetpypystandalone |
748 |
- ) |
749 |
- |
750 |
- # Avoid linking against libraries disabled by use flags |
751 |
- local opts=( |
752 |
- bzip2:bz2 |
753 |
- ncurses:_minimal_curses |
754 |
- ) |
755 |
- |
756 |
- local opt |
757 |
- for opt in "${opts[@]}"; do |
758 |
- local flag=${opt%:*} |
759 |
- local mod=${opt#*:} |
760 |
- |
761 |
- args+=( |
762 |
- $(usex ${flag} --withmod --withoutmod)-${mod} |
763 |
- ) |
764 |
- done |
765 |
- |
766 |
- local interp=( "${PYTHON}" ) |
767 |
- if use low-memory; then |
768 |
- interp=( env PYPY_GC_MAX_DELTA=200MB |
769 |
- "${PYTHON}" --jit loop_longevity=300 ) |
770 |
- fi |
771 |
- |
772 |
- set -- "${interp[@]}" rpython/bin/rpython --batch "${args[@]}" |
773 |
- echo -e "\033[1m${@}\033[0m" |
774 |
- "${@}" || die "compile error" |
775 |
- |
776 |
- use doc && emake -C pypy/doc/ html |
777 |
- pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" |
778 |
-} |
779 |
- |
780 |
-src_test() { |
781 |
- # (unset) |
782 |
- local -x PYTHONDONTWRITEBYTECODE |
783 |
- |
784 |
- ./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die |
785 |
-} |
786 |
- |
787 |
-src_install() { |
788 |
- einfo "Installing PyPy ..." |
789 |
- insinto "/usr/$(get_libdir)/pypy" |
790 |
- doins -r include lib_pypy lib-python pypy-c libpypy-c.so |
791 |
- fperms a+x ${INSDESTTREE}/pypy-c ${INSDESTTREE}/libpypy-c.so |
792 |
- pax-mark m "${ED%/}${INSDESTTREE}/pypy-c" "${ED%/}${INSDESTTREE}/libpypy-c.so" |
793 |
- dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy |
794 |
- dodoc README.rst |
795 |
- |
796 |
- if ! use gdbm; then |
797 |
- rm -r "${ED%/}${INSDESTTREE}"/lib_pypy/gdbm.py \ |
798 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_gdbm.py || die |
799 |
- fi |
800 |
- if ! use sqlite; then |
801 |
- rm -r "${ED%/}${INSDESTTREE}"/lib-python/*2.7/sqlite3 \ |
802 |
- "${ED%/}${INSDESTTREE}"/lib_pypy/_sqlite3.py \ |
803 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_sqlite.py || die |
804 |
- fi |
805 |
- if ! use tk; then |
806 |
- rm -r "${ED%/}${INSDESTTREE}"/lib-python/*2.7/{idlelib,lib-tk} \ |
807 |
- "${ED%/}${INSDESTTREE}"/lib_pypy/_tkinter \ |
808 |
- "${ED%/}${INSDESTTREE}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die |
809 |
- fi |
810 |
- |
811 |
- # Install docs |
812 |
- use doc && dohtml -r pypy/doc/_build/html/ |
813 |
- |
814 |
- einfo "Generating caches and byte-compiling ..." |
815 |
- |
816 |
- local -x PYTHON=${ED%/}${INSDESTTREE}/pypy-c |
817 |
- local -x LD_LIBRARY_PATH="${ED%/}${INSDESTTREE}" |
818 |
- # we can't use eclass function since PyPy is dumb and always gives |
819 |
- # paths relative to the interpreter |
820 |
- local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages |
821 |
- python_export pypy EPYTHON |
822 |
- |
823 |
- echo "EPYTHON='${EPYTHON}'" > epython.py || die |
824 |
- python_domodule epython.py |
825 |
- |
826 |
- # Generate Grammar and PatternGrammar pickles. |
827 |
- "${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \ |
828 |
- || die "Generation of Grammar and PatternGrammar pickles failed" |
829 |
- |
830 |
- # Generate cffi cache |
831 |
- # Please keep in sync with pypy/tool/release/package.py! |
832 |
- "${PYTHON}" -c "import syslog" || die "Failed to import syslog (cffi)" |
833 |
- if use gdbm; then |
834 |
- "${PYTHON}" -c "import gdbm" || die "Failed to import gdbm (cffi)" |
835 |
- fi |
836 |
- if use ncurses; then |
837 |
- "${PYTHON}" -c "import _curses" || die "Failed to import _curses (cffi)" |
838 |
- fi |
839 |
- if use sqlite; then |
840 |
- "${PYTHON}" -c "import _sqlite3" || die "Failed to import _sqlite3 (cffi)" |
841 |
- fi |
842 |
- if use tk; then |
843 |
- "${PYTHON}" -c "import _tkinter" || die "Failed to import _tkinter (cffi)" |
844 |
- fi |
845 |
- |
846 |
- # Cleanup temporary objects |
847 |
- find "${ED%/}${INSDESTTREE}" -name "_cffi_*.[co]" -delete || die |
848 |
- find "${ED%/}${INSDESTTREE}" -type d -empty -delete || die |
849 |
- |
850 |
- # compile the installed modules |
851 |
- python_optimize "${ED%/}${INSDESTTREE}" |
852 |
-} |