setup.py 1.96 KB
Newer Older
Fang Yuedong's avatar
Fang Yuedong committed
1
2
from setuptools import setup, find_packages

Xin Zhang's avatar
Xin Zhang committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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),
# )



Fang Yuedong's avatar
Fang Yuedong committed
28
setup(name='CSSTSim', 
Fang Yuedong's avatar
Fang Yuedong committed
29
    version='2.0.0', 
Fang Yuedong's avatar
Fang Yuedong committed
30
    packages=find_packages(),
31
    install_requires=[
32
33
34
35
36
37
38
39
40
41
42
        # 'numpy>=1.18.5',
        # 'galsim>=2.2.4',
        # 'pyyaml>=5.3.1',
        # 'astropy>=4.0.1',
        # 'scipy>=1.5.0',
        # 'mpi4py>=3.0.3',
        # 'sep>=1.0.3',
        # 'healpy>=1.14.0',
        # 'h5py>=2.10.0',
        # 'Cython>=0.29.21',
        # 'numba>=0.50.1'
43
    ],
Fang Yuedong's avatar
Fang Yuedong committed
44
45
46
    package_data = {
        'ObservationSim.Astrometry.lib': ['libshao.so'], 
        'ObservationSim.MockObject.data': ['*.dat'], 
Fang Yuedong's avatar
Fang Yuedong committed
47
48
        'ObservationSim.Instrument.data': ['*.txt', '*.dat', '*.json'],
        'ObservationSim.Instrument.data.field_distortion': ['*.pickle'],
Fang Yuedong's avatar
Fang Yuedong committed
49
50
        'ObservationSim.Instrument.data.ccd': ['*.txt'], 
        'ObservationSim.Instrument.data.filters': ['*.txt', '*.list', '*.dat'], 
51
        'ObservationSim.Instrument.data.throughputs': ['*.txt', '*.dat'], 
Fang Yuedong's avatar
Fang Yuedong committed
52
        'ObservationSim.Instrument.data.sls_conf': ['*.conf', '*.fits'],
53
        'ObservationSim.Instrument.data.flatCube': ['*.fits'],
Fang Yuedong's avatar
Fang Yuedong committed
54
        'Catalog.data': ['*.fits'],
Fang Yuedong's avatar
Fang Yuedong committed
55
        'ObservationSim.Config.Header':['*.header','*.lst'],
56
57
        'ObservationSim.Straylight.data': ['*.dat'],
        'ObservationSim.Straylight.lib': ['*'],
Fang Yuedong's avatar
Fang Yuedong committed
58
    },
Xin Zhang's avatar
Xin Zhang committed
59
    ext_modules = cythonize(extensions),
xin's avatar
xin committed
60
)