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
					Sergio Sánchez Ramírez
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							53c266b161
						
					
				
				
					commit
					3405fe60f1
				
			| @@ -83,6 +83,7 @@ class Libgit2(CMakePackage): | |||||||
|     depends_on("cmake@2.8:", type="build", when="@:0.28") |     depends_on("cmake@2.8:", type="build", when="@:0.28") | ||||||
|     depends_on("cmake@3.5:", type="build", when="@0.99:") |     depends_on("cmake@3.5:", type="build", when="@0.99:") | ||||||
|     depends_on("pkgconfig", type="build") |     depends_on("pkgconfig", type="build") | ||||||
|  |     depends_on("python", type="test") | ||||||
| 
 | 
 | ||||||
|     # Runtime Dependencies |     # Runtime Dependencies | ||||||
|     depends_on("libssh2", when="+ssh") |     depends_on("libssh2", when="+ssh") | ||||||
| @@ -123,5 +124,6 @@ def cmake_args(self): | |||||||
| 
 | 
 | ||||||
|         # Control tests |         # Control tests | ||||||
|         args.append(self.define("BUILD_CLAR", self.run_tests)) |         args.append(self.define("BUILD_CLAR", self.run_tests)) | ||||||
|  |         args.append(self.define("BUILD_TESTS", self.run_tests)) | ||||||
| 
 | 
 | ||||||
|         return args |         return args | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user