commit:     809afd4a24533311ced5ecfb2f022b539a3b6dd2
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 27 04:54:55 2020 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Jan 27 04:59:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=809afd4a

sci-libs/scipy: disable parallel build completely.

  After 4 years discussion and debugging, we conclude that Python 3 is
  deeply broken in parallel builds for anything involving compiling of
  C/C++/fortran code.  The problem is universal, regardless how
  dev-python/numpy is built.

  Numpy and scipy upstream cannot do anything about this.  We bite the
  bullet and disable parallel build of scipy completely.

  Thanks to all who have contributed to this heroic marathon
  debugging.  We regret that only a workaround can be provided at this
  moment.

Credit: Andrés Becerra Sandoval, Hendrik v. Raven, younky.yang <AT> yahoo.com
Credit: matoro, Denis Descheneaux, Mathy Vanvoorden, email200202 <AT> yahoo.com
Credit: jon R-B, Anton Kochkov, Jonas Stein, edes, David Duchesne
Credit: thulle, Mathy Vanvoorden, Sasha Medvedev, rtgiskard <AT> gmail.com
Credit: Lukasz Ligowski, Zentoo, Jouni Kosonen, Neil, Harris Landgarten
Credit: Markus Oehme, Andreas Proteus
Suggested-By: François Bissey,  Arfrever Frehtes Taifersar Arahesis
Reference: https://github.com/numpy/numpy/issues/13080
Reference: https://github.com/scipy/scipy/issues/7112
Closes: https://bugs.gentoo.org/614464
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 sci-libs/scipy/scipy-1.4.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sci-libs/scipy/scipy-1.4.1.ebuild 
b/sci-libs/scipy/scipy-1.4.1.ebuild
index a9e7e584875..b176683c887 100644
--- a/sci-libs/scipy/scipy-1.4.1.ebuild
+++ b/sci-libs/scipy/scipy-1.4.1.ebuild
@@ -108,6 +108,8 @@ python_prepare_all() {
 
 python_compile() {
        # FIXME: parallel python building fails, bug #614464
+       export MAKEOPTS=-j1
+
        ${EPYTHON} tools/cythonize.py || die
        distutils-r1_python_compile \
                ${SCIPY_FCONFIG}

Reply via email to