1 |
commit: 809afd4a24533311ced5ecfb2f022b539a3b6dd2 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 04:54:55 2020 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 04:59:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=809afd4a |
7 |
|
8 |
sci-libs/scipy: disable parallel build completely. |
9 |
|
10 |
After 4 years discussion and debugging, we conclude that Python 3 is |
11 |
deeply broken in parallel builds for anything involving compiling of |
12 |
C/C++/fortran code. The problem is universal, regardless how |
13 |
dev-python/numpy is built. |
14 |
|
15 |
Numpy and scipy upstream cannot do anything about this. We bite the |
16 |
bullet and disable parallel build of scipy completely. |
17 |
|
18 |
Thanks to all who have contributed to this heroic marathon |
19 |
debugging. We regret that only a workaround can be provided at this |
20 |
moment. |
21 |
|
22 |
Credit: Andrés Becerra Sandoval, Hendrik v. Raven, younky.yang <AT> yahoo.com |
23 |
Credit: matoro, Denis Descheneaux, Mathy Vanvoorden, email200202 <AT> yahoo.com |
24 |
Credit: jon R-B, Anton Kochkov, Jonas Stein, edes, David Duchesne |
25 |
Credit: thulle, Mathy Vanvoorden, Sasha Medvedev, rtgiskard <AT> gmail.com |
26 |
Credit: Lukasz Ligowski, Zentoo, Jouni Kosonen, Neil, Harris Landgarten |
27 |
Credit: Markus Oehme, Andreas Proteus |
28 |
Suggested-By: François Bissey, Arfrever Frehtes Taifersar Arahesis |
29 |
Reference: https://github.com/numpy/numpy/issues/13080 |
30 |
Reference: https://github.com/scipy/scipy/issues/7112 |
31 |
Closes: https://bugs.gentoo.org/614464 |
32 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
33 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
34 |
|
35 |
sci-libs/scipy/scipy-1.4.1.ebuild | 2 ++ |
36 |
1 file changed, 2 insertions(+) |
37 |
|
38 |
diff --git a/sci-libs/scipy/scipy-1.4.1.ebuild b/sci-libs/scipy/scipy-1.4.1.ebuild |
39 |
index a9e7e584875..b176683c887 100644 |
40 |
--- a/sci-libs/scipy/scipy-1.4.1.ebuild |
41 |
+++ b/sci-libs/scipy/scipy-1.4.1.ebuild |
42 |
@@ -108,6 +108,8 @@ python_prepare_all() { |
43 |
|
44 |
python_compile() { |
45 |
# FIXME: parallel python building fails, bug #614464 |
46 |
+ export MAKEOPTS=-j1 |
47 |
+ |
48 |
${EPYTHON} tools/cythonize.py || die |
49 |
distutils-r1_python_compile \ |
50 |
${SCIPY_FCONFIG} |