Skip to content

Commit 72b874d

Browse files
committed
Fix readthedocs build
1 parent 90469de commit 72b874d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
from distutils.core import setup
1818
from qpython import __version__
1919

20-
import numpy
2120
import os
2221

22+
try:
23+
import numpy
24+
include_dirs = [numpy.get_include()]
25+
except:
26+
include_dirs = []
27+
2328
try:
2429
from Cython.Build import cythonize
2530
except ImportError:
@@ -49,7 +54,7 @@ def read(fname):
4954
license = 'Apache License Version 2.0',
5055

5156
ext_modules = ext_modules,
52-
include_dirs = [numpy.get_include()],
57+
include_dirs = include_dirs,
5358

5459
keywords = ['kdb+', 'q'],
5560
classifiers=[

0 commit comments

Comments
 (0)