Skip to content

Commit

Permalink
fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
juaduan committed Mar 29, 2024
1 parent f7a53e3 commit ffe4a02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from setuptools import setup, Extension

class get_numpy_include(object):

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

if __name__ == "__main__":
setup(
include_dirs=[get_numpy_include()],
ext_modules=[
Extension(
"anomaly_detector.univariate._anomaly_kernel_cython",
["src/anomaly_detector/univariate/_anomaly_kernel_cython.c"],
include_dirs=[GetNumpyInclude()]
)
]
)

0 comments on commit ffe4a02

Please sign in to comment.