Commit e82a5dcc authored by Xin Zhang's avatar Xin Zhang
Browse files

fix sls install bug

parent a63216e8
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Cython Cython
""" """
from . import disperse # from . import disperse
from . import interp # from . import interp
#from .disperse import * from .disperse import *
#from .interp import * from .interp import *
from setuptools import setup, find_packages from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools.config import read_configuration
from Cython.Build import cythonize
import numpy
extensions = [
Extension("ObservationSim.MockObject.SpecDisperser.disperse_c.interp", ["ObservationSim/MockObject/SpecDisperser/disperse_c/interp.pyx"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
Extension("ObservationSim.MockObject.SpecDisperser.disperse_c.disperse", ["ObservationSim/MockObject/SpecDisperser/disperse_c/disperse.pyx"],
include_dirs = [numpy.get_include()],
libraries=["m"]),
]
# setup(
# name = "slssim_disperse",
# ext_modules = cythonize(extensions),
# )
setup(name='CSSTSim', setup(name='CSSTSim',
version='0.3', version='0.3',
packages=find_packages(), packages=find_packages(),
...@@ -16,4 +41,5 @@ setup(name='CSSTSim', ...@@ -16,4 +41,5 @@ setup(name='CSSTSim',
# 'Cython>=0.29.21' # 'Cython>=0.29.21'
# 'numba>=0.50.1' # 'numba>=0.50.1'
# ] # ]
ext_modules = cythonize(extensions),
) )
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment