Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949409 - dev-lang/gdl-1.04-r1 has bug related to proper detection of python with numpy
Summary: dev-lang/gdl-1.04-r1 has bug related to proper detection of python with numpy
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-07 22:27 UTC by Brian D. Kacos
Modified: 2025-02-08 16:49 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 Brian D. Kacos 2025-02-07 22:27:51 UTC
For reasons that I couldn't fully track down, if you compile dev-lang/gdl-1.04-r1 with numpy installed for python3_11 and set (for gdl) PYTHON_SINGLE_TARGET=python3_11 and you have python3_13 also installed but without numpy for python3_13 then gdl won't compile. It complains that it can't find a valid python installation with numpy. It says that it detected python 3.13.1 and that python 3.11 was the minimum but that, as such, python is not detected.

To solve, you must install numpy with PYTHON_TARGETS=python3.13. It doesn't matter what gdl's PYTHON_SINGLE_TARGET is set to. Alternatively you can edit the ebuild for gdl to add python3_13 to PYTHON_COMPAT and the set PYTHON_SINGLE_TARGET=python3.13 for gdl and everything works out.

To reproduce:
Install python3_13 and python3_11.
Install numpy with PYTHON_TARGETS="-python3_13 python3_11"
Try to install dev-lang/gdl

Workaround:
change PYTHON_COMPAT to include python3_13 in gdl.ebuild
compile dev-lang/gdl with PYTHON_SINGLE_TARGET=python3_13