commit:     a0e30c1db3bdbb71784c53247ef44e202bff63da
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  2 00:11:19 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Sep  2 01:21:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e30c1d

dev-util/maturin: avoid cargo_src_install

Eli pointed out that maturin was (partly) being recompiled during
src_install for nothing, aka it sees that "something" changed and
thinks it needs to recompile some bits. I'd imagine that this
something comes from the python eclasses (CPPFLAGS change maybe?),
but I haven't dug into it as it's simpler+faster to just use dobin
here, other bits are handled by setuptools and then cargo_src_install
does nothing else (because of that, I see no real reason to revert
this even if it the recompiling stopped -- it's faster to skip cargo's
checks and we have no real "files to install" to track).

Some bits may get recompiled during src_test as well alongside tests
themselves but not going to worry too much when it's just for tests
and doesn't hit common users.

Thanks-to: Eli Schwartz <eschwartz <AT> gentoo.org>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/maturin/maturin-1.9.3.ebuild | 2 +-
 dev-util/maturin/maturin-1.9.4.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/maturin/maturin-1.9.3.ebuild 
b/dev-util/maturin/maturin-1.9.3.ebuild
index 47ad7b87b638..9cde190b965d 100644
--- a/dev-util/maturin/maturin-1.9.3.ebuild
+++ b/dev-util/maturin/maturin-1.9.3.ebuild
@@ -141,7 +141,7 @@ python_test() {
 }
 
 python_install_all() {
-       cargo_src_install
+       dobin "$(cargo_target_dir)"/maturin
 
        dodoc Changelog.md README.md
        use doc && dodoc -r guide/html

diff --git a/dev-util/maturin/maturin-1.9.4.ebuild 
b/dev-util/maturin/maturin-1.9.4.ebuild
index 3c7f87e386ee..9dbf6aa5ed2b 100644
--- a/dev-util/maturin/maturin-1.9.4.ebuild
+++ b/dev-util/maturin/maturin-1.9.4.ebuild
@@ -141,7 +141,7 @@ python_test() {
 }
 
 python_install_all() {
-       cargo_src_install
+       dobin "$(cargo_target_dir)"/maturin
 
        dodoc Changelog.md README.md
        use doc && dodoc -r guide/html

Reply via email to