version 1.27, 2017/09/13 17:46:15
|
version 1.28, 2020/02/04 20:57:26
|
|
|
#!/usr/bin/python |
#!/usr/bin/python3 |
| |
# When run with the -s flag, localize.py configures the SUMS-server component of NetDRMS. | # When run with the -s flag, localize.py configures the SUMS-server component of NetDRMS. |
from __future__ import print_function |
|
import sys | import sys |
import getopt | import getopt |
import re | import re |
|
|
import xml.etree.ElementTree as ET | import xml.etree.ElementTree as ET |
from subprocess import check_output, CalledProcessError | from subprocess import check_output, CalledProcessError |
| |
if sys.version_info < (2, 7): |
|
raise Exception("You must run the 2.7 release, or a more recent release, of Python.") |
|
| |
# Constants | # Constants |
VERS_FILE = 'jsoc_version.h' | VERS_FILE = 'jsoc_version.h' |
Line 806 def configureComps(defs, mDefs): |
|
Line 803 def configureComps(defs, mDefs): |
|
rv = bool(1) | rv = bool(1) |
elif hasicc: | elif hasicc: |
mDefs.extend(list('\nCOMPILER = icc')) | mDefs.extend(list('\nCOMPILER = icc')) |
|
# mDefs.extend(list('\nICC_VERSION = blah')) |
else: | else: |
mDefs.extend(list('\nCOMPILER = gcc')) | mDefs.extend(list('\nCOMPILER = gcc')) |
| |