diff options
author | Sergio Sánchez Ramírez <15837247+mofeing@users.noreply.github.com> | 2023-11-08 23:20:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 23:20:55 +0100 |
commit | 3405fe60f177d1bfdde1b9828ea2207ecfb5b891 (patch) | |
tree | 14d850c8e80cea769c904ee8e49d10143c272412 /var | |
parent | 53c266b161db09e38e8e5acc9d28a3506a15eaf5 (diff) | |
download | spack-3405fe60f177d1bfdde1b9828ea2207ecfb5b891.tar.gz spack-3405fe60f177d1bfdde1b9828ea2207ecfb5b891.tar.bz2 spack-3405fe60f177d1bfdde1b9828ea2207ecfb5b891.tar.xz spack-3405fe60f177d1bfdde1b9828ea2207ecfb5b891.zip |
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>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libgit2/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libgit2/package.py b/var/spack/repos/builtin/packages/libgit2/package.py index dd09fd8e1e..20410cf1c6 100644 --- a/var/spack/repos/builtin/packages/libgit2/package.py +++ b/var/spack/repos/builtin/packages/libgit2/package.py @@ -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 @@ class Libgit2(CMakePackage): # Control tests args.append(self.define("BUILD_CLAR", self.run_tests)) + args.append(self.define("BUILD_TESTS", self.run_tests)) return args |