mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Try unbreak OSX build when Python installation doesn't live under
PREFIX. In this case it is not safe to call ``strip_path_prefix()`` due to the assertion error it will raise.
This commit is contained in:
parent
0a8cd3ae19
commit
d98d392aac
|
@ -1340,8 +1340,13 @@ class PythonInstallComponent(Component):
|
|||
def __init__(self, name, libz3Component):
|
||||
assert isinstance(libz3Component, DLLComponent)
|
||||
Component.__init__(self, name, None, [])
|
||||
self.pythonPkgDirWithoutPrefix = strip_path_prefix(PYTHON_PACKAGE_DIR, PREFIX)
|
||||
self.pythonPkgDirWithoutPrefix = None
|
||||
self.libz3Component = libz3Component
|
||||
if PYTHON_INSTALL_ENABLED:
|
||||
# Only safe to call this if we know that PYTHON_PACKAGE_DIR lives under PREFIX.
|
||||
# Other parts of the code enforce that this is the case when ``PYTHON_INSTALL_ENABLED``
|
||||
# is True.
|
||||
self.pythonPkgDirWithoutPrefix = strip_path_prefix(PYTHON_PACKAGE_DIR, PREFIX)
|
||||
|
||||
def main_component(self):
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue