commit:     039697b8a76d34afd28398e348d4fab0e0bda9ee
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Thu Jan  5 10:39:16 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 02:09:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=039697b8

dev-python/pytables: fix prefix installation

In setup.py default prefix includes "/usr", not "${EPREFIX}/usr". Thus
under Gentoo prefix, libraries like hdf5 cannot be found by default.
Prefixify this line to fix this.

Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28968
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pytables/pytables-3.8.0-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytables/pytables-3.8.0-r1.ebuild 
b/dev-python/pytables/pytables-3.8.0-r1.ebuild
index af123af3a0fa..661e90f4fe6e 100644
--- a/dev-python/pytables/pytables-3.8.0-r1.ebuild
+++ b/dev-python/pytables/pytables-3.8.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{8..11} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit distutils-r1
+inherit distutils-r1 prefix
 
 MY_PN=tables
 MY_P=${MY_PN}-${PV}
@@ -62,6 +62,7 @@ python_prepare_all() {
        rm -r c-blosc/{blosc,internal-complibs} || die
        rm tables/libblosc2.so || die
        sed -i -e '/blosc2/d' requirements.txt || die
+       hprefixify -w '/prefixes =/' setup.py
        distutils-r1_python_prepare_all
 }
 

Reply via email to