Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717746 - dev-python/numpy and dev-python/numpy-python2: consider removing PKG-INFO to force cython compilation
Summary: dev-python/numpy and dev-python/numpy-python2: consider removing PKG-INFO to ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-16 19:16 UTC by Pacho Ramos
Modified: 2020-04-22 14:51 UTC (History)
1 user (show)

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 Pacho Ramos gentoo-dev 2020-04-16 19:16:36 UTC
When I was reviewing how other distributions where packaging numpy* packages I found that Fedora and openSuSE are doing:
rm -v PKG-INFO

That way they force cython run due to this in setup.py
    if run_build:
        from numpy.distutils.core import setup
        cwd = os.path.abspath(os.path.dirname(__file__))
        if not os.path.exists(os.path.join(cwd, 'PKG-INFO')):
            # Generate Cython sources, unless building from source release
            generate_cython()

        metadata['configuration'] = configuration


I am unsure if we are not doing it on purpose... but, for letting you know before I forget about it :)
Comment 1 Mike Gilbert gentoo-dev 2020-04-16 19:27:37 UTC
I think running cython would only be necessary if we actually patched the numpy source code. Otherwise, it's a waste of CPU time.
Comment 2 Pacho Ramos gentoo-dev 2020-04-22 14:51:29 UTC
Fine, thanks a lot :)