mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	Add python packaging build and deployment with Azure
This commit is contained in:
		
							parent
							
								
									eec550e645
								
							
						
					
					
						commit
						ec5b148ecc
					
				
					 4 changed files with 120 additions and 14 deletions
				
			
		|  | @ -33,11 +33,13 @@ if RELEASE_DIR is None: | |||
|     RELEASE_METADATA = None | ||||
|     BUILD_PLATFORM = sys.platform | ||||
| else: | ||||
|     if not os.path.isdir(RELEASE_DIR): | ||||
|         raise Exception("RELEASE_DIR (%s) is not a directory!" % RELEASE_DIR) | ||||
|     BUILD_DIR = os.path.join(RELEASE_DIR, 'bin') | ||||
|     HEADER_DIRS = [os.path.join(RELEASE_DIR, 'include')] | ||||
|     RELEASE_METADATA = os.path.basename(RELEASE_DIR).split('-') | ||||
|     if RELEASE_METADATA[0] != 'z3' or len(RELEASE_METADATA) not in (4, 5): | ||||
|         raise Exception("RELEASE_DIR must be in the format z3-version-arch-os[-osversion] so we can extract metadata from it. Sorry!") | ||||
|         raise Exception("RELEASE_DIR (%s) must be in the format z3-version-arch-os[-osversion] so we can extract metadata from it. Sorry!" % RELEASE_DIR) | ||||
|     RELEASE_METADATA.pop(0) | ||||
|     BUILD_PLATFORM = RELEASE_METADATA[2] | ||||
| 
 | ||||
|  | @ -225,7 +227,12 @@ if 'bdist_wheel' in sys.argv and '--plat-name' not in sys.argv: | |||
|         distos = RELEASE_METADATA[2] | ||||
|         if distos in ('debian', 'ubuntu') or 'linux' in distos: | ||||
|             raise Exception("Linux binary distributions must be built on centos to conform to PEP 513") | ||||
|         if distos == 'win': | ||||
|         elif distos == 'centos': | ||||
|             if arch == 'x64': | ||||
|                 plat_name = 'manylinux1_x86_64' | ||||
|             else: | ||||
|                 plat_name = 'manylinux1_i686' | ||||
|         elif distos == 'win': | ||||
|             if arch == 'x64': | ||||
|                 plat_name = 'win_amd64' | ||||
|             else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue