Skip to content

Commit 424ef40

Browse files
committed
version 201808
Fixed bug that caused compilation errors under newer versions of Cython
1 parent 0e0203b commit 424ef40

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import os
66
import sys
7+
import numpy
78
from distutils.core import setup
89
from setuptools import find_packages
910
from distutils.sysconfig import get_python_lib
@@ -24,8 +25,8 @@
2425

2526
ext = '.pyx' if USE_CYTHON else '.c'
2627

27-
extensions = [Extension("pytda/pytda_cython_tools",
28-
["pytda/pytda_cython_tools"+ext])]
28+
extensions = [Extension(PACKAGES[0]+'.pytda_cython_tools',
29+
[PACKAGES[0]+'/pytda_cython_tools'+ext])]
2930

3031
if USE_CYTHON:
3132
from Cython.Build import cythonize
@@ -49,5 +50,6 @@
4950
Operating System :: MacOS
5051
"""],
5152
long_description="""Python Turbulence Detection Algorithm (PyTDA)""",
52-
ext_modules=extensions
53+
ext_modules=extensions,
54+
include_dirs = [numpy.get_include(), '.']
5355
)

0 commit comments

Comments
 (0)