setup.py 1.67 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='0.5.1', 
Fang Yuedong's avatar
Fang Yuedong committed
30
    packages=find_packages(),
Fang Yuedong's avatar
Fang Yuedong committed
31
32
33
34
35
36
37
38
39
40
41
42
43
    # install_requires=[
    #     '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'
    # ],
Fang Yuedong's avatar
Fang Yuedong committed
44
45
46
47
48
49
    package_data = {
        'ObservationSim.Astrometry.lib': ['libshao.so'], 
        'ObservationSim.MockObject.data': ['*.dat'], 
        'ObservationSim.Instrument.data': ['*.txt', '*.dat'], 
        'ObservationSim.Instrument.data.ccd': ['*.txt'], 
        'ObservationSim.Instrument.data.filters': ['*.txt', '*.list', '*.dat'], 
50
        'ObservationSim.Instrument.data.throughputs': ['*.txt', '*.dat'], 
Fang Yuedong's avatar
Fang Yuedong committed
51
52
53
        'ObservationSim.Instrument.data.sls_conf': ['*.conf', '*.fits'],
        'Catalog.data': ['*.fits'],
    },
Xin Zhang's avatar
Xin Zhang committed
54
    ext_modules = cythonize(extensions),
Fang Yuedong's avatar
Fang Yuedong committed
55
)