Skip to content

Commit

Permalink
Cython needs numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed May 5, 2024
1 parent 8b16f3b commit 0748d57
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools.extension import Extension
import numpy

# see INSTALL file for details
# to create a source package
Expand All @@ -18,12 +19,16 @@
# autopep8 --max-line-length=170 -d -r friture

ext_modules = [Extension("friture_extensions.exp_smoothing_conv",
["friture_extensions/exp_smoothing_conv.pyx"]),
["friture_extensions/exp_smoothing_conv.pyx"],
include_dirs=[numpy.get_include()]),
Extension("friture_extensions.linear_interp",
["friture_extensions/linear_interp.pyx"]),
["friture_extensions/linear_interp.pyx"],
include_dirs=[numpy.get_include()]),
Extension("friture_extensions.lookup_table",
["friture_extensions/lookup_table.pyx"]),
["friture_extensions/lookup_table.pyx"],
include_dirs=[numpy.get_include()]),
Extension("friture_extensions.lfilter",
["friture_extensions/lfilter.pyx"])]
["friture_extensions/lfilter.pyx"],
include_dirs=[numpy.get_include()])]

setup(ext_modules=ext_modules)

0 comments on commit 0748d57

Please sign in to comment.