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

Bug 717746

Summary: dev-python/numpy and dev-python/numpy-python2: consider removing PKG-INFO to force cython compilation
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED INVALID    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 :)