-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·26 lines (20 loc) · 820 Bytes
/
setup.py
File metadata and controls
executable file
·26 lines (20 loc) · 820 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
#!/usr/bin/env python
import urllib
import argparse
import os
def parse_options():
desc = "Setup script for uGMTScripts"
parser = argparse.ArgumentParser(description=desc, formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--update', dest='update', action='store_true', default=False, help='Update the cross repo dependencies')
opts = parser.parse_args()
return opts
def get_ugmt_constants():
urllib.urlretrieve ("https://raw.githubusercontent.com/dinyar/uGMTfirmware/master/uGMT_algos/firmware/hdl/common/ugmt_constants.vhd",
"ugmt_patterns/data/ugmt_constants.vhd")
def main():
opts = parse_options()
if opts.update:
print 'Fetching newest version of ugmt_constants.vhd'
get_ugmt_constants()
if __name__ == "__main__":
main()