diff --git a/setup.py b/setup.py index 300c1be6..97981b95 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,13 @@ from distutils import sysconfig import platform -import numpy +try: + import numpy +except: # noqa: E722 + from unittest.mock import MagicMock + sys.modules["numpy"] = MagicMock() + import numpy + from setuptools import Extension, setup import versioneer