-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (36 loc) · 974 Bytes
/
setup.py
File metadata and controls
39 lines (36 loc) · 974 Bytes
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
from setuptools import setup
import os
import sys
import os.path as op
import json
import shutil
setup_args = {
'name': 'chart',
'author': 'CHART',
'url': 'https://github.com/adampbeardsley/CHART',
'license': 'BSD',
'description': 'Completely Hackable Amateur Radio Telescope',
'package_dir': {'chart': 'src/chart'},
'packages': ['chart'],
'include_package_data': True,
'scripts': ['daq/freq_and_time_scan.py', 'daq/chart-observe.py'],
'version': 1.0,
'install_requires': [
'ipython',
'jupyter',
'ipympl',
'numpy>=1.20',
'customtkinter',
'astropy',
'matplotlib',
'pandas',
'ipywidgets',
'scipy'
],
}
if __name__ == '__main__':
setup(**setup_args)
src = shutil.which('chart-observe.py')
dest = os.path.expanduser('~') + '/Desktop/chart-observe'
if src is not None and not os.path.exists(dest):
os.symlink(src, dest)