Skip to content
Snippets Groups Projects

Implementation of layered LCG software stacks

Merged Pere Mato Vila requested to merge SPI-1401 into master
Compare and Show latest version
4 files
+ 34
3
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 9
0
@@ -120,6 +120,7 @@ def lcgcmake_configure(args) :
options = args.options or config.get('OPTIONS', [])
pyversion = args.pyversion or config.get('PYVERSION',str(sys.version_info[0]))
target_platform = args.target_platform or config.get('BINARY_TAG', None)
build_always = args.build_always if args.build_always is not None else config.get('BUILD_ALWAYS', False)
debug = args.debug
arch = args.arch
osvers = args.osvers
@@ -196,6 +197,11 @@ def lcgcmake_configure(args) :
if(toolchain):
c_options += ['-DLCG_TOOLCHAIN_FILE=' + toolchain]
if(build_always):
c_options += ['-DLCG_BUILD_ALWAYS=ON']
else:
c_options += ['-DLCG_BUILD_ALWAYS=OFF']
if(lcg_prefix):
c_options += ['-DLCG_INSTALL_PREFIX=' + lcg_prefix]
@@ -232,6 +238,7 @@ def lcgcmake_configure(args) :
config['PYVERSION'] = pyversion
config['LCG_PREFIX'] = lcg_prefix
config['TOOLCHAIN'] = toolchain
config['BUILD_ALWAYS'] = build_always
if not os.path.exists(rcPATH) : os.mkdir(rcPATH)
json.dump(config, open(os.path.join(rcPATH,'config.json'),'w'), sort_keys=True, indent=2, separators=(',', ': '))
@@ -624,6 +631,8 @@ if __name__ == '__main__':
p_c.add_argument('-t', '--target_platform', dest='target_platform', help='Force a plaform string (e.g. x86_64-centos7-gcc7-opt)', default=None)
p_c.add_argument('--lcg-prefix', dest='lcg_prefix', help='Location(s) of existing LCG releases. Used for incremental builds (: separated)')
p_c.add_argument('--toolchain', dest='toolchain', help='Set an LCG toolchain file. It takes priority to the composed file using the stack version', default=None)
p_c.add_argument('--build-always', dest='build_always', action='store_true', help='Force to build all local packages', default=None)
p_c.add_argument('--no-build-always', dest='build_always', action='store_false', help='Do not force to build all local packages', default=None)
p_c.add_argument('--no-binary', dest='binary', action='store_false', help='Force not using binary installations if they exists')
p_c.add_argument('--with-tarfiles', dest='withtarfiles', action='store_true', help='Produce the binary tarfiles while building the packages')
p_c.add_argument('--with-rpms', dest='withrpms', action='store_true', help='Produce the rpms while building the packages')
Loading