Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927302 - dev-python/pyopengl_accelerate - automagic dependency on dev-python/numpy
Summary: dev-python/pyopengl_accelerate - automagic dependency on dev-python/numpy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-19 19:23 UTC by Daniel Harding
Modified: 2024-03-21 15:19 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 Daniel Harding 2024-03-19 19:23:54 UTC
dev-python/pyopengl_accelerate checks for numpy at install time and builds its numpy extension only if numpy is present:

https://github.com/mcfletch/pyopengl/blob/29b79e8966ba2930a5c44829b02dffc1ca600752/accelerate/setup.py#L66-L88

pyopengl_accelerate does not seem to have a way to turn off building the numpy extension when numpy is installed, so a USE flag for this package may not be appropriate.  Perhaps it should unconditionally depend on dev-python/numpy?  Alternatively, if the ebuild were updated to support USE=numpy, perhaps it could patch setup.py to skip building the extension when building dev-python/pyopengl_accelerate with USE=-numpy.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-21 15:08:28 UTC
Thanks for the report!
Comment 2 Larry the Git Cow gentoo-dev 2024-03-21 15:19:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d6e5ecf75c437da0aa47231e1302b5c514a8f4

commit 78d6e5ecf75c437da0aa47231e1302b5c514a8f4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-21 15:08:31 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-21 15:12:34 +0000

    dev-python/pyopengl_accelerate: Add a flag to control numpy ext
    
    Closes: https://bugs.gentoo.org/927302
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pyopengl_accelerate/metadata.xml        |  3 +++
 .../pyopengl_accelerate-3.1.7.ebuild               | 23 ++++++++++++++++++----
 2 files changed, 22 insertions(+), 4 deletions(-)