summaryrefslogtreecommitdiffstats
path: root/makeaci
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-08-24 13:36:12 +0200
committerDavid Kupka <dkupka@redhat.com>2016-10-24 14:11:08 +0200
commit9b534238157e003d2d7c3e1a7fd27531ab1dfd25 (patch)
treee51358355aa0ff725d939e55a54dd33befef2a25 /makeaci
parent0b91735c79a0ba577f9540e946180760a97913a4 (diff)
downloadfreeipa-9b534238157e003d2d7c3e1a7fd27531ab1dfd25.tar.gz
freeipa-9b534238157e003d2d7c3e1a7fd27531ab1dfd25.tar.xz
freeipa-9b534238157e003d2d7c3e1a7fd27531ab1dfd25.zip
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 <pspacek@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'makeaci')
-rwxr-xr-xmakeaci2
1 files changed, 2 insertions, 0 deletions
diff --git a/makeaci b/makeaci
index 66731126f..98b199c83 100755
--- a/makeaci
+++ b/makeaci
@@ -30,6 +30,8 @@ import sys
import difflib
from argparse import ArgumentParser
+import ignore_import_errors # pylint: disable=unused-import
+
from ipalib import api
from ipapython.dn import DN
from ipapython.ipaldap import LDAPClient