forked from MITHaystack/CorrelX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (43 loc) · 1.54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
from setuptools import setup, find_packages
import os
from distutils import sysconfig
site_packages_path = sysconfig.get_python_lib()
VERSION = "version.txt"
REQUIREMENTS = "requirements.pkg.txt"
def get_path(fi):
return os.path.join(os.path.dirname(__file__), fi)
with open(get_path(REQUIREMENTS)) as f:
reqs = [line.strip() for line in f if "==" in line and not line.strip().startswith("#")]
with open(get_path(VERSION)) as f:
version = [x.strip() for x in f][0]
exclude = [
"cxs.tests",
"cxs.tools"
]
setup(
name="cxs338",
version=version,
description="CXS338",
author="AJ",
author_email="ajvazquez.teleco@gmail.com",
#url
install_requires=reqs,
packages=[x for x in find_packages(exclude=exclude) if x.startswith("cxs")],
entry_points={
"console_scripts": [
# Spark
"cxs = cxs.parallel.spark.spark_cx:main",
# Tools
"cx-vis-compare = cxs.iocx.visibilities.tools.vis_compare:main",
"cx-vdif-gen = cxs.iocx.readers.vdif.tools.vdif_generator:main",
"cx-vdif-info = cxs.iocx.readers.vdif.tools.vdif_info:main",
# Hadoop
"cxh = cxs.parallel.hadoop.mapred_cx:main",
# Conversion tools
"cx2d-pcal = cxs.conversion.difx.convert_cx2d:main",
"cx2d = cxs.conversion.difx.convert_cx_dx:main",
"im2cx = cxs.conversion.difx.convert_im_cx:main",
"cx-zoom = cxs.conversion.difx.process_zoom:main",
]
}
)