Skip to content
Snippets Groups Projects

Implementation of layered LCG software stacks

Merged Pere Mato Vila requested to merge SPI-1401 into master
1 file
+ 9
2
Compare changes
  • Side-by-side
  • Inline
+ 9
2
@@ -28,7 +28,10 @@ else:
srcURL = 'http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources'
binURL = 'http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/releases'
ctbURL = 'http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/contrib'
rcPATH = os.path.join(os.environ['HOME'],'.lcgcmake')
if os.path.exists(os.path.join(os.getcwd(),'.lcgcmake')) :
rcPATH = os.path.join(os.getcwd(),'.lcgcmake')
else:
rcPATH = os.path.join(os.environ['HOME'],'.lcgcmake')
contrib_suffix = ''
gtar_version = '1.30-a85f4'
gfor_version = '6.3.0'
@@ -109,8 +112,11 @@ def lcgcmake_configure(args) :
sourcedir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
#---read the old configuration if exists
global rcPATH
if args.local:
rcPATH = os.path.join(os.getcwd(),'.lcgcmake') # overwrite the location of .lcgcmake
if os.path.exists(os.path.join(rcPATH,'config.json')):
config = json.load(open(os.path.join(rcPATH,'config.json'),'r'))
config = json.load(open(os.path.join(rcPATH,'config.json'),'r'))
compiler = args.compiler or config.get('COMPILER', 'native')
version = args.version or config.get('VERSION', get_default_version())
@@ -622,6 +628,7 @@ if __name__ == '__main__':
subparsers = parser.add_subparsers( dest='command', help='available sub-commands')
p_v = subparsers.add_parser('version', help='print the version of lcgcmake')
p_c = subparsers.add_parser('configure', help='configure the lcgcmake session by selecting the software stack version, etc.', aliases=['config', 'conf'])
p_c.add_argument('--local', dest='local', action='store_true', help='Do not use $HOME to create .lcgcmake folder')
p_c.add_argument('-c', '--compiler', dest='compiler', help='compiler keyword to be used (e.g. gcc62, gcc7, etc. )', default=None)
p_c.add_argument('-p', '--prefix', dest='prefix', help='prefix to the final installations', default=None)
p_c.add_argument('-v', '--version', dest='version', help='LCG software stack version', default=None)
Loading