Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 590464

Summary: dev-python/numpy: installs non-compiled Python packages
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan, frp.bissey, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/numpy/numpy/issues/7996
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-08-04 14:12:28 UTC
$ find /usr/lib*/python*/site-packages/numpy | xargs qfile -o
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_api.pyc
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_api.pyo
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_arrayprint.pyc
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_arrayprint.pyo
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_blasdot.pyc
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_blasdot.pyo
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_datetime.pyc
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_datetime.pyo

i.e. tests are installed non-compiled, and therefore files are compiled at runtime and are orphaned.
Comment 1 David Seifert gentoo-dev 2016-08-30 17:30:21 UTC
commit 80b2e1b4def977bee9743d7bc52c01acf19fbb9a
Author: David Seifert <soap@gentoo.org>
Date:   Tue Aug 30 19:24:34 2016 +0200

    dev-python/numpy: Version bump
    
    Gentoo-bug: 590464, 591936
    * Re-add py3.3 support to prevent depgraph breakage
    * Fix QA bug installing non-compiled files #590464
    * Fix linking due to adding unnecessary -lblas to
      build system #591936
    * Move dev-python/setuptools to DEPEND instead of
      RDEPEND
Comment 2 Mike Gilbert gentoo-dev 2016-08-30 23:38:31 UTC
Upstream basically says this is by-design; nothing is supposed to import those modules.
Comment 3 Mike Gilbert gentoo-dev 2016-08-30 23:44:06 UTC
commit a057d53552e566121889a566a862768e909d4d03
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Tue Aug 30 19:42:19 2016 -0400

    dev-python/numpy: disable "fix" for bug 590464
    
    It's not clear what is creating the pyc files, and this is a pretty bad
    hack around it.
    
    Package-Manager: portage-2.3.0_p22

 dev-python/numpy/numpy-1.11.1.ebuild | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Comment 4 François Bissey 2016-08-30 23:48:47 UTC
(In reply to Mike Gilbert from comment #2)
> Upstream basically says this is by-design; nothing is supposed to import
> those modules.

Then why is it shipped? Should the fix be not to install them?