dev-libs/imath: fix #931291

looks up Python first, then Python3 and Python2, so we specify both..

Closes: https://bugs.gentoo.org/931291
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41967
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander 2025-05-01 19:52:29 +02:00 committed by Sam James
parent 1754f0ad94
commit de708f3667
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -49,7 +49,6 @@ DOCS=( CHANGES.md CONTRIBUTORS.md README.md SECURITY.md )
PATCHES=(
"${FILESDIR}/${PN}-3.1.11-fix_cmake_module_export.patch"
"${FILESDIR}/${PN}-3.1.11-use-correct-boost_python_version.patch"
)
pkg_setup() {
@ -69,8 +68,9 @@ src_configure() {
)
if use python; then
mycmakeargs+=(
-DBoost_NO_BOOST_CMAKE=OFF
-DPYTHON=ON
# looks up Python first, then Python3 and Python2, so we specify both..
-DPython_EXECUTABLE="${PYTHON}"
-DPython3_EXECUTABLE="${PYTHON}"
-DPython3_INCLUDE_DIR="$(python_get_includedir)"
-DPython3_LIBRARY="$(python_get_library_path)"