setup.py 1.48 KB
Newer Older
xin's avatar
init  
xin committed
1
2
3
4
'''
Author: xin zhangxinbjfu@gmail.com
Date: 2022-04-29 16:13:01
LastEditors: xin zhangxinbjfu@gmail.com
xin's avatar
xin committed
5
LastEditTime: 2022-07-05 15:33:36
xin's avatar
init  
xin committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/setup.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
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("SpecDisperser.disperse_c.interp", ["SpecDisperser/disperse_c/interp.pyx"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),

    Extension("SpecDisperser.disperse_c.disperse", ["SpecDisperser/disperse_c/disperse.pyx"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),
xin's avatar
xin committed
26
27
28
29
30
31
32

    Extension("SpecGen.SpecGenerator", ["SpecGen/SpecGenerator.py"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),
    Extension("SpecGen.Config", ["SpecGen/Config.py"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),
xin's avatar
init  
xin committed
33
34
35
]


xin's avatar
xin committed
36
version='1.00'
xin's avatar
init  
xin committed
37
38

setup(
xin's avatar
xin committed
39
    name = "SL1DSSIM",
xin's avatar
init  
xin committed
40
    version = version,
xin's avatar
xin committed
41
    description = "Slitless 1d spec generator",
xin's avatar
init  
xin committed
42
43
44
45
46
47
48
49
50
51
52
53
54

    packages=['SpecDisperser', 'SpecDisperser/disperse_c'],
    install_requires=[
        'galsim',
        'numpy',
        'scipy',
        'astropy',
    ],
    ext_modules = cythonize(extensions),

)