SpecHashDescriptor: better repr in debugger (#45739)
This commit is contained in:
		 Massimiliano Culpo
					Massimiliano Culpo
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							7a8dc36760
						
					
				
				
					commit
					586a35be43
				
			| @@ -37,6 +37,12 @@ def __call__(self, spec): | |||||||
|         """Run this hash on the provided spec.""" |         """Run this hash on the provided spec.""" | ||||||
|         return spec.spec_hash(self) |         return spec.spec_hash(self) | ||||||
| 
 | 
 | ||||||
|  |     def __repr__(self): | ||||||
|  |         return ( | ||||||
|  |             f"SpecHashDescriptor(depflag={self.depflag!r}, " | ||||||
|  |             f"package_hash={self.package_hash!r}, name={self.name!r}, override={self.override!r})" | ||||||
|  |         ) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| #: Spack's deployment hash. Includes all inputs that can affect how a package is built. | #: Spack's deployment hash. Includes all inputs that can affect how a package is built. | ||||||
| dag_hash = SpecHashDescriptor(depflag=dt.BUILD | dt.LINK | dt.RUN, package_hash=True, name="hash") | dag_hash = SpecHashDescriptor(depflag=dt.BUILD | dt.LINK | dt.RUN, package_hash=True, name="hash") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user