libgit2: add python as test dependency (#40863)

Libgit2 requires python as build dependency. I was getting an error because it was falling back to system Python which is compiled with Intel compilers and thus, `libgit2` was failing because it couldn't find `libimf.so` (which doesn't make sense).

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
Sergio Sánchez Ramírez 2023-11-08 23:20:55 +01:00 committed by GitHub
parent 53c266b161
commit 3405fe60f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,7 @@ class Libgit2(CMakePackage):
depends_on("cmake@2.8:", type="build", when="@:0.28")
depends_on("cmake@3.5:", type="build", when="@0.99:")
depends_on("pkgconfig", type="build")
depends_on("python", type="test")
# Runtime Dependencies
depends_on("libssh2", when="+ssh")
@ -123,5 +124,6 @@ def cmake_args(self):
# Control tests
args.append(self.define("BUILD_CLAR", self.run_tests))
args.append(self.define("BUILD_TESTS", self.run_tests))
return args