Skip to content

Commit ffe4a02

Browse files
committed
fix setup.py
1 parent f7a53e3 commit ffe4a02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
from setuptools import setup, Extension
66

7-
class get_numpy_include(object):
7+
8+
class GetNumpyInclude(object):
89
"""A lazy include path for numpy.
910
This way numpy isn't imported until it's actually installed,
1011
so the `install_requires` argument can handle it properly.
@@ -16,11 +17,11 @@ def __str__(self):
1617

1718
if __name__ == "__main__":
1819
setup(
19-
include_dirs=[get_numpy_include()],
2020
ext_modules=[
2121
Extension(
2222
"anomaly_detector.univariate._anomaly_kernel_cython",
2323
["src/anomaly_detector/univariate/_anomaly_kernel_cython.c"],
24+
include_dirs=[GetNumpyInclude()]
2425
)
2526
]
2627
)

0 commit comments

Comments
 (0)