Issue #13 skipping building extensions on non-Linux platforms
[python-kmod.git] / kmod / __init__.py
index 20a73ef99a104367f26d9e8ecc26ee3562698583..0d797870eae6d0f4af9d9e0c86ef228e8845ea4e 100644 (file)
@@ -17,4 +17,8 @@
 "Libkmod -- Python interface to kmod API."
 
 from .version import __version__
-from .kmod import Kmod
+try:
+    from .kmod import Kmod
+except ImportError:
+    # this is a non-Linux platform
+    pass