mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	try diferennt dirs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									3b036369f9
								
							
						
					
					
						commit
						778b9a57c3
					
				
					 1 changed files with 10 additions and 9 deletions
				
			
		|  | @ -113,16 +113,17 @@ def _clean_native_build(): | |||
| 
 | ||||
| def _z3_version(): | ||||
|     post = os.getenv('Z3_VERSION_SUFFIX', '') | ||||
|     print("z3_version", "release dir", RELEASE_DIR) | ||||
|     print("z3_version", "release dir", RELEASE_DIR)    | ||||
|     if RELEASE_DIR is None: | ||||
|         fn = os.path.join(SRC_DIR, 'VERSION.txt') | ||||
|         print("loading version file", fn) | ||||
|         if os.path.exists(fn): | ||||
|             with open(fn) as f: | ||||
|                 for line in f: | ||||
|                     n = re.match(r"(.*)\.(.*)\.(.*)\.(.*)", line) | ||||
|                     if not n is None: | ||||
|                         return n.group(1) + '.' + n.group(2) + '.' + n.group(3) + '.' + n.group(4) + post | ||||
|         fns = [os.path.join(SRC_DIR, 'VERSION.txt'), os.path.join(ROOT_DIR, 'VERSION.txt')] | ||||
|         for fn in fns: | ||||
|             print("loading version file", fn) | ||||
|             if os.path.exists(fn): | ||||
|                 with open(fn) as f: | ||||
|                     for line in f: | ||||
|                         n = re.match(r"(.*)\.(.*)\.(.*)\.(.*)", line) | ||||
|                         if not n is None: | ||||
|                             return n.group(1) + '.' + n.group(2) + '.' + n.group(3) + '.' + n.group(4) + post | ||||
|         return "?.?.?.?" | ||||
|     else: | ||||
|         version = RELEASE_METADATA[0] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue