-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b75211
commit b8d2aa3
Showing
2 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
from setuptools import setup, find_packages, Extension | ||
# from Cython.Build import cythonize | ||
# from Cython.Compiler import Options | ||
from Cython.Build import cythonize | ||
from Cython.Compiler import Options | ||
import numpy as np | ||
|
||
''' | ||
Options.docstrings = True | ||
Options.annotate = False | ||
|
||
extensions = [Extension('stcal.ramp_fitting.ols_cas22', | ||
['src/stcal/ramp_fitting/ols_cas22.pyx'], | ||
include_dirs=[np.get_include()], | ||
extra_compile_args=['-std=c99'])] | ||
include_dirs=[np.get_include()])] | ||
''' | ||
|
||
# package_data values are glob patterns relative to each specific subpackage. | ||
package_data = { | ||
"stcal.ramp_fitting.src": ["*.c"], | ||
} | ||
|
||
# Setup C module include directories | ||
include_dirs = [np.get_include()] | ||
|
||
# Setup C module macros | ||
define_macros = [("NUMPY", "1")] | ||
|
||
extensions = [ | ||
Extension( | ||
'stcal.ramp_fitting.ols_cas22', | ||
['src/stcal/ramp_fitting/ols_cas22.pyx'], | ||
include_dirs=include_dirs, | ||
extra_compile_args=['-std=c99'] | ||
), | ||
Extension( | ||
"stcal.ramp_fitting.slope_fitter", | ||
["src/stcal/ramp_fitting/src/slope_fitter.c"], | ||
include_dirs=include_dirs, | ||
define_macros=define_macros, | ||
), | ||
] | ||
|
||
setup( | ||
ext_modules=[ | ||
Extension( | ||
"stcal.ramp_fitting.slope_fitter", | ||
["src/stcal/ramp_fitting/src/slope_fitter.c"], | ||
include_dirs=include_dirs, | ||
define_macros=define_macros, | ||
), | ||
# cythonize(extensions), | ||
], | ||
ext_modules=cythonize(extensions), | ||
) |