Skip to content

Commit

Permalink
I believe this will distribute the files required to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
sixpearls committed Jun 10, 2019
1 parent 5842b53 commit 1dae103
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setup.py
Expand Up @@ -21,24 +21,26 @@
if use_cython and use_numpy:
extensions = cythonize([
Extension("{}.{}".format(name, extname),
[os.path.join(name, "{}.pyx".format(extname))],
include_dirs=[numpy.get_include()],
[os.path.join(name, "{}.pyx".format(extname)),
os.path.join(name, "{}.h".format(extname)),
],
include_dirs=[numpy.get_include(),],
depends=[os.path.join(name, "{}.h".format(extname))]),
])

elif use_numpy:
extensions = [
Extension("{}.{}".format(name, extname),
[os.path.join(name, "{}.c".format(extname))],
include_dirs=[numpy.get_include()],
[os.path.join(name, "{}.c".format(extname)),],
include_dirs=[numpy.get_include(),],
depends=[os.path.join(name, "{}.h".format(extname))])
]
else:
extensions = []

setup(
name=name,
version="0.0.1",
version="0.0.3",
description="Multi-dimensional splines",
url="https://github.com/sixpearls/ndsplines",
author="Benjamin Margolis",
Expand Down

0 comments on commit 1dae103

Please sign in to comment.