From 9b534238157e003d2d7c3e1a7fd27531ab1dfd25 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Wed, 24 Aug 2016 13:36:12 +0200 Subject: makeapi, makeaci: do not fail on missing imports Add import hook to makeapi and makeaci which makes them ignore import errors in modules in our source tree and instead print a warning. This makes it possible to build IPA without having to have most of our runtime dependencies installed. https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Petr Spacek Reviewed-By: Martin Basti --- makeapi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'makeapi') diff --git a/makeapi b/makeapi index 38ae16634..a02a491a4 100755 --- a/makeapi +++ b/makeapi @@ -32,6 +32,9 @@ import os import re import inspect import operator + +import ignore_import_errors # pylint: disable=unused-import + from ipalib import api from ipalib.parameters import Param from ipalib.output import Output -- cgit