mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 02:15:19 +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
|
@ -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…
Reference in a new issue