Fix up a problem where the macOS builder expected a variable to be set, but it was being skipped due to a dependent variable not being available yet. Used the `setup_extra()` hook so that it runs after all the other setup.

bzr-revno: 43
This commit is contained in:
Raoul Snyman 2019-03-10 20:53:29 +01:00 committed by Tomas Groth
commit f98ae61bce
1 changed files with 1 additions and 2 deletions

View File

@ -359,11 +359,10 @@ class MacOSXBuilder(Builder):
qt_library_path = QCoreApplication.libraryPaths()[0]
return os.path.join(os.path.dirname(qt_library_path), 'translations')
def setup_paths(self):
def setup_extra(self):
"""
Extra setup to run
"""
super().setup_paths()
if hasattr(self, 'mutool_exe'):
self.mutool_lib = os.path.abspath(
os.path.join(os.path.dirname(self.mutool_exe), '..', 'lib', 'libjbig2dec.0.dylib'))