-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
41 lines (29 loc) · 916 Bytes
/
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
from setuptools import setup, Extension
import os
from Cython.Build import cythonize
import numpy as np
# Supplies __version__
from ch_frb_io import __version__
REQUIRES = ['numpy', 'scipy', 'cython', 'h5py', 'bitshuffle',]
# Generate test data.
from ch_frb_io.tests.data import generate
generate()
COMPILE_FLAGS = ['-O3', '-ffast-math', '-march=native']
EXTENSIONS = [
]
extensions = cythonize(EXTENSIONS,
include_path=[np.get_include()],
)
setup(
name = 'ch_frb_io',
version = __version__,
packages = ['ch_frb_io', 'ch_frb_io.tests'],
ext_modules = extensions,
scripts=['bin/decompress-chfrb-data'],
install_requires=REQUIRES,
package_data = {'ch_frb_io.tests' : ['data/*']},
author = "Kiyoshi Masui, Kendrick Smith",
author_email = "[email protected]",
description = "CHIME FRB IO",
url = "https://github.com/CHIMEFRB/ch_frb_io"
)