forked from reeveress/adc16
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
42 lines (35 loc) · 1.08 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
#!/usr/bin/env python
"""
setup.py -- setup script for fits2hdf package
"""
from setuptools import setup, find_packages
import os
version = '1.2.1'
# create entry points
# see http://astropy.readthedocs.org/en/latest/development/scripts.html
entry_points = {
'console_scripts' :
['snap_init = snap_control.snap_init:cmd_tool',
'snap_plot = snap_control.snap_plot:cmd_tool'
]
}
package_data={
'snap_control': ['adc_register_map.txt'],
}
# Manually install casperfpga if not installed
try:
import casperfpga
except:
os.system('pip install git+https://github.com/jack-h/tftpy')
os.system('pip install git+https://github.com/UCBerkeleySETI/casperfpga')
setup(name='snap_control',
version=version,
description='CASPER SNAP FPGA board control',
install_requires=['numpy', 'casperfpga'],
url='https://github.com/ucberkeleyseti/snap_control',
author='D. Price, Z. Abdurashidova and friends',
entry_points=entry_points,
packages=find_packages(),
package_data=package_data,
zip_safe=False,
)