-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
43 lines (32 loc) · 1.06 KB
/
setup.py
1
2
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from setuptools import setup, Extension
import os
from Cython.Build import cythonize
import numpy as np
# Supplies __version__
from ch_L1mock import __version__
REQUIRES = ['numpy', 'scipy', 'cython', 'h5py', 'bitshuffle', 'burst_search',
'PyYAML', 'ch_frb_io']
COMPILE_FLAGS = ['-O3', '-ffast-math', '-march=native']
EXTENSIONS = [
Extension('ch_L1mock._L0',
['ch_L1mock/_L0.pyx'],
extra_compile_args=COMPILE_FLAGS,
language="c++",
)
]
extensions = cythonize(EXTENSIONS,
include_path=[np.get_include()],
)
setup(
name = 'ch_L1mock',
version = __version__,
packages = ['ch_L1mock', 'ch_L1mock.tests'],
ext_modules = extensions,
scripts=['bin/corr-vdif', 'bin/run-L1-mock'],
install_requires=REQUIRES,
package_data = {'ch_L1mock.tests' : ['data/*']},
author = "Kiyoshi Masui, Cherry Ng, Kendrick Smith",
author_email = "[email protected]",
description = "Mock-up of CHIME FRB level 1 processing",
url = "https://github.com/CHIMEFRB/ch_L1mock"
)