mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Improve error message emitting during configure when the Python
bindings are enabled and the set python package directory does not live under the install prefix. This is the other part required to fix issue #404.
This commit is contained in:
		
							parent
							
								
									e9ea687bb9
								
							
						
					
					
						commit
						49a2ed01c8
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1363,7 +1363,15 @@ class PythonInstallComponent(Component):
 | 
			
		|||
        else:
 | 
			
		||||
            # Use path inside the prefix (should be the normal case on Linux)
 | 
			
		||||
            # CMW: Also normal on *BSD?
 | 
			
		||||
            assert PYTHON_PACKAGE_DIR.startswith(PREFIX)
 | 
			
		||||
            if not PYTHON_PACKAGE_DIR.startswith(PREFIX):
 | 
			
		||||
                raise MKException(('The python package directory ({}) must live ' +
 | 
			
		||||
                    'under the install prefix ({}) to install the python bindings.' +
 | 
			
		||||
                    'Use --pypkgdir and --prefix to set the python package directory ' +
 | 
			
		||||
                    'and install prefix respectively. Note that the python package ' +
 | 
			
		||||
                    'directory does not need to exist and will be created if ' +
 | 
			
		||||
                    'necessary during install.').format(
 | 
			
		||||
                        PYTHON_PACKAGE_DIR,
 | 
			
		||||
                        PREFIX))
 | 
			
		||||
            self.pythonPkgDir = strip_path_prefix(PYTHON_PACKAGE_DIR, PREFIX)
 | 
			
		||||
            self.in_prefix_install = True
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue