Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635872 - sci-libs/scipy: Broken logic for "-j $(makeopts_jobs)"
Summary: sci-libs/scipy: Broken logic for "-j $(makeopts_jobs)"
Status: RESOLVED DUPLICATE of bug 614464
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 07:07 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2017-11-30 02:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2017-10-30 07:07:09 UTC
"What’s New In Python 3.5" document
https://docs.python.org/3.5/whatsnew/3.5.html#distutils says:

"distutils

Both the build and build_ext commands now accept a -j option to enable parallel building of extension modules."


However ebuilds of sci-libs/scipy have this broken logic:

python_compile() {
        ${EPYTHON} tools/cythonize.py || die
        distutils-r1_python_compile \
                $(usex python_targets_python3_5 "" "-j $(makeopts_jobs)") \
                ${SCIPY_FCONFIG}
}

When python_targets_python3_5 is enabled, "-j $(makeopts_jobs)" is not passed for any version of Python.

When python_targets_python3_5 is disabled, "-j $(makeopts_jobs)" is passed for all versions of Python, which might include Python 2.7 or 3.4 whose Distutils does not support -j option.

The correct behavior would be to check, inside python_compile() function, if version of Python to be used during current invocation of python_compile() is >=3.5.
Comment 1 Benda Xu gentoo-dev 2017-10-30 12:59:17 UTC
see also https://bugs.gentoo.org/573148
Comment 2 Benda Xu gentoo-dev 2017-11-30 02:51:08 UTC

*** This bug has been marked as a duplicate of bug 614464 ***