-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
executable file
·82 lines (78 loc) · 3.48 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Usage:
#
# python setup.py install
#
#
from setuptools import setup, find_packages
import os
from subprocess import Popen, PIPE
import cdat_info
Version = "8.0"
p = Popen(
("git",
"describe",
"--tags"),
stdin=PIPE,
stdout=PIPE,
stderr=PIPE)
try:
descr = p.stdout.readlines()[0].strip().decode("utf-8")
Version = "-".join(descr.split("-")[:-2])
if Version == "":
Version = descr
except:
descr = Version
setup(name="vcs",
version=descr,
description="Visualization and Control System",
url="http://github.com/cdat/vcs",
packages=find_packages(),
#package_dir={'vcs': 'vcs'},
scripts= ["scripts/vcs_download_sample_data"],
zip_safe=True,
data_files=[('share/vcs', ('share/wmo_symbols.json',
'share/data_continent_coarse',
'share/data_continent_political',
'share/data_continent_river',
'share/data_continent_states',
'share/data_continent_other7',
'share/data_continent_fine',
'share/initial.attributes',
'share/cdat.png',
'share/marker_icon.png',
'share/text_icon.png',
'share/fill_icon.png',
'share/line_icon.png',
'share/sample_files.txt',
'share/mapper.js',
'share/cvi_tip_lib.js',
'share/tooltip.css',
'share/modal.js',
'share/test_data_files.txt')),
('share/vcs/fonts', ('Fonts/Adelon_Regular.ttf',
'Fonts/Arabic.ttf',
'Fonts/Athens_Greek.ttf',
'Fonts/AvantGarde-Book_Bold.ttf',
'Fonts/Chinese_Generic1.ttf',
'Fonts/Clarendon.ttf',
'Fonts/Courier.ttf',
'Fonts/HelvMono.ttf',
'Fonts/Russian.ttf',
'Fonts/Times_CG_ATT.ttf',
'Fonts/blex.ttf',
'Fonts/blsy.ttf',
'Fonts/hebrew.ttf',
'Fonts/jsMath-msam10.ttf',
'Fonts/jsMath-wasy10.ttf',
'Fonts/DejaVu Fonts License.txt',
'Fonts/DejaVuSans-Bold.ttf',
'Fonts/DejaVuSans-BoldOblique.ttf',
'Fonts/DejaVuSans-ExtraLight.ttf',
'Fonts/DejaVuSans-Oblique.ttf',
'Fonts/DejaVuSans.ttf',
'Fonts/DejaVuSansCondensed-Bold.ttf',
'Fonts/DejaVuSansCondensed-BoldOblique.ttf',
'Fonts/DejaVuSansCondensed-Oblique.ttf',
'Fonts/DejaVuSansCondensed.ttf'))
]
)