env: only add concrete attribute to abstract specs
				
					
				
			- to aovid changing spec hashes drastically, only add this attribute to differentiated abstract specs. - othherwise assume that read-in specs are concrete
This commit is contained in:
		| @@ -1462,7 +1462,8 @@ def to_node_dict(self, hash_function=None, all_deps=False): | |||||||
|                 'module': self.external_module |                 'module': self.external_module | ||||||
|             } |             } | ||||||
|  |  | ||||||
|         d['concrete'] = self._concrete |         if not self._concrete: | ||||||
|  |             d['concrete'] = False | ||||||
|  |  | ||||||
|         if 'patches' in self.variants: |         if 'patches' in self.variants: | ||||||
|             variant = self.variants['patches'] |             variant = self.variants['patches'] | ||||||
| @@ -1560,8 +1561,8 @@ def from_node_dict(node): | |||||||
|             spec.external_path = None |             spec.external_path = None | ||||||
|             spec.external_module = None |             spec.external_module = None | ||||||
|  |  | ||||||
|         if 'concrete' in node: |         # specs read in are concrete unless marked abstract | ||||||
|             spec._concrete = node['concrete'] |         spec._concrete = node.get('concrete', True) | ||||||
|  |  | ||||||
|         if 'patches' in node: |         if 'patches' in node: | ||||||
|             patches = node['patches'] |             patches = node['patches'] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Todd Gamblin
					Todd Gamblin