diff options
| author | Jan Cholasta <jcholast@redhat.com> | 2016-08-24 13:36:12 +0200 |
|---|---|---|
| committer | David Kupka <dkupka@redhat.com> | 2016-10-24 14:11:08 +0200 |
| commit | 9b534238157e003d2d7c3e1a7fd27531ab1dfd25 (patch) | |
| tree | e51358355aa0ff725d939e55a54dd33befef2a25 /makeapi | |
| parent | 0b91735c79a0ba577f9540e946180760a97913a4 (diff) | |
| download | freeipa-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 'makeapi')
| -rwxr-xr-x | makeapi | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
