12bfb86 Make netifaces optional

Authored and Committed by cheimes 4 years ago
    Make netifaces optional
    
    netifaces is a binary Python extension. Outside of the installer, it's
    only used by CheckedIPAddress.get_matching_interface, which is only
    called from installer code.
    
    Make the import of netifaces optional to reduce the amount of
    dependencies for PyPI package use case. Binary extensions are especially
    annoying, because they depend on shared libraries, compiler, and header
    files to be present.
    
    Related: https://pagure.io/freeipa/issue/6468
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Oleg Kozlov <okozlov@redhat.com>
    Reviewed-By: Oleg Kozlov <okozlov@redhat.com>
    
        
file modified
+7 -1
file modified
+2 -1