Merge lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev into lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers

Proposed by Olivier Mattelaer
Status: Merged
Merged at revision: 109
Proposed branch: lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev
Merge into: lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers
Diff against target: 471 lines (+200/-184)
2 files modified
HEPToolInstaller.py (+198/-183)
installLHAPDF6.sh (+2/-1)
To merge this branch: bzr merge lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev
Reviewer Review Type Date Requested Status
Valentin Hirschi Approve
Review via email: mp+362720@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

He he,

I learned that you can merge multiple times the same branch...
I guess I will merge this quickly any objection?

Olivier

PS: I will auto-review the change ;-)

Revision history for this message
Valentin Hirschi (valentin-hirschi) wrote :

> He he,
>
> I learned that you can merge multiple times the same branch...
> I guess I will merge this quickly any objection?
>
> Olivier
>
> PS: I will auto-review the change ;-)

There seem to be *a lot* of modifications which are however probably just some re-structuring an reshuffling of the various bits of HEPToolsInstaller.py.
Would you mind describing a bit your changes? Thanks!

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Note that revision 109 change a lot but at the same time,
it actually is mainly identation and adding
if "__main__" == __name__
at couple of place.
The reason is that I want to be able to do
import HEPToolsInstaller
and not run the code.
So this is in principle harmless.

Revision history for this message
Valentin Hirschi (valentin-hirschi) wrote :

Ok, that's a very positive change. I like the idea of being able to use this tool both as a standalone and a python module. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'HEPToolInstaller.py'
--- HEPToolInstaller.py 2018-04-13 09:53:15 +0000
+++ HEPToolInstaller.py 2019-02-05 10:15:18 +0000
@@ -263,9 +263,6 @@
263# List of tools for which the tarballs have been specified263# List of tools for which the tarballs have been specified
264_tarballs_specified = []264_tarballs_specified = []
265265
266if len(sys.argv)>1 and sys.argv[1].lower() not in _HepTools.keys():
267 logger.warning("HEPToolInstaller does not support the installation of %s" , sys.argv[1])
268 sys.argv[1] = 'help'
269266
270logger_level = [a[10:] for a in sys.argv if '--logging=' in a]267logger_level = [a[10:] for a in sys.argv if '--logging=' in a]
271if not logger_level:268if not logger_level:
@@ -276,15 +273,22 @@
276 logger_level = int(logger_level)273 logger_level = int(logger_level)
277 else:274 else:
278 try:275 try:
279 logger_level = getattr(logging,logger_level)276 logger_level = getattr(logging,logger_level)
280 except AttributeError:277 except AttributeError:
281 print "Logging level %s not reckognized."%logger_level278 print "Logging level %s not reckognized."%logger_level
282 sys.exit(9)279 sys.exit(9)
283 280logging.basicConfig(format='%(message)s',level=logger_level)
284logging.basicConfig(format='%(message)s',level=logger_level)281
285282if "__main__" == __name__:
286if len(sys.argv)<2 or sys.argv[1]=='help': 283
287 print """284 if len(sys.argv)>1 and sys.argv[1].lower() not in _HepTools.keys():
285 logger.warning("HEPToolInstaller does not support the installation of %s" , sys.argv[1])
286 sys.argv[1] = 'help'
287
288
289
290 if len(sys.argv)<2 or sys.argv[1]=='help':
291 print """
288./HEPToolInstaller <target> <options>"292./HEPToolInstaller <target> <options>"
289 Possible values and meaning for the various <options> are:293 Possible values and meaning for the various <options> are:
290 294
@@ -312,16 +316,17 @@
312Example of usage:316Example of usage:
313 ./HEPToolInstaller.py pythia8 --prefix=~/MyTools --with_lhapdf6=OFF --pythia8_tarball=~/MyTarball.tar.gz317 ./HEPToolInstaller.py pythia8 --prefix=~/MyTools --with_lhapdf6=OFF --pythia8_tarball=~/MyTarball.tar.gz
314"""%(', '.join(_HepTools.keys()),', '.join(_non_installable_dependencies.keys()))318"""%(', '.join(_HepTools.keys()),', '.join(_non_installable_dependencies.keys()))
315 sys.exit(9)319 sys.exit(9)
316320
317target_tool = sys.argv[1].lower()321 target_tool = sys.argv[1].lower()
322
318323
319# Make sure to set the install location of all other tools than the target to 'default'. Meaning that they324# Make sure to set the install location of all other tools than the target to 'default'. Meaning that they
320# will be installed if not found.325# will be installed if not found.
321for tool in _HepTools:326 for tool in _HepTools:
322 if tool==target_tool:327 if tool==target_tool:
323 continue328 continue
324 _HepTools[tool]['install_path']='default'329 _HepTools[tool]['install_path']='default'
325330
326331
327# For compatibility reason, map some names332# For compatibility reason, map some names
@@ -336,9 +341,10 @@
336 ['--veto_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()]+\341 ['--veto_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()]+\
337 ['--logging','--source', '--version']342 ['--logging','--source', '--version']
338343
339# Recall input command for logfiles344if '__main__' == __name__:
340logger.debug("Installer HEPToolInstaller.py is now processing the following command:")345 # Recall input command for logfiles
341logger.debug(" %s"%' '.join(sys.argv))346 logger.debug("Installer HEPToolInstaller.py is now processing the following command:")
347 logger.debug(" %s"%' '.join(sys.argv))
342348
343def with_option_parser(with_option):349def with_option_parser(with_option):
344 if with_option=='ON':350 if with_option=='ON':
@@ -363,140 +369,141 @@
363 tool_options['tarball'] = tarball_specifier369 tool_options['tarball'] = tarball_specifier
364 break370 break
365371
366_version = None372if '__main__' == __name__:
367# Now parse the options373 _version = None
368for user_option in sys.argv[2:]:374 # Now parse the options
369 try:375 for user_option in sys.argv[2:]:
370 option, value = user_option.split('=')
371 except:
372 option = user_option
373 value = None
374 if option not in available_options:
375 logger.error("Option '%s' not reckognized." , option)
376 sys.exit(9)
377 if option=='--force':
378 _overwrite_existing_installation = True
379 if option=='--update':
380 supported_tools = ['madanalysis5']
381 if target_tool not in supported_tools:
382 logger.error("HEPToolsInstaller.py supports the option '--update' only for the following tools:")
383 logger.error(" %s"%supported_tools)
384 sys.exit(9)
385 _keep_existing_installation = True
386 if option=='--keep_source':
387 _keep_source = True
388 if option=='--prefix':
389 if not os.path.isdir(value):
390 logger.info("Creating root directory '%s'.", os.path.abspath(value))
391 os.mkdir(os.path.abspath(value))
392 _prefix = os.path.abspath(value)
393 elif option=='--fortran_compiler':
394 _gfortran = value
395 elif option=='--cpp_compiler':
396 _cpp = value
397 elif option=='--no_MA5_further_install':
398 _HepTools['madanalysis5']['MA5_further_install']=False
399 elif option=='--no_root_in_MA5':
400 _HepTools['madanalysis5']['use_root_if_available']=False
401 elif option=='--cpp_standard_lib':
402 if value not in ['-lc++','-lstdc++']:
403 logger.error( "ERROR: Option '--cpp_standard_lib' must be either '-lc++' or '-libstdc++', not '%s'.", value)
404 sys.exit(9)
405 _cpp_standard_lib = value
406 elif option=='--mg5_path':
407 _mg5_path = value
408 # Try to gather MG5_version
409 try:376 try:
410 _mg5_version = None377 option, value = user_option.split('=')
411 for line in open(pjoin(_mg5_path,'VERSION'),'r').read().split('\n'):
412 if line.startswith('version ='):
413 _mg5_version = LooseVersion(line[9:].strip())
414 break
415 except:378 except:
416 raise379 option = user_option
417 _mg5_version = None380 value = None
418 elif option.startswith('--with_'):381 if option not in available_options:
419 dependency_name = _dependency_names_map[option[7:]] if option[7:] in _dependency_names_map else option[7:]382 logger.error("Option '%s' not reckognized." , option)
420 value = with_option_parser(value)383 sys.exit(9)
421 if dependency_name in _HepTools:384 if option=='--force':
422 _HepTools[dependency_name]['install_path'] = value385 _overwrite_existing_installation = True
423 else:386 if option=='--update':
424 # Special treatment for dependencies that cannot be directly installed in this installer387 supported_tools = ['madanalysis5']
425 _non_installable_dependencies[dependency_name]['path'] = value if (value not in ['Default',False, None]) else None 388 if target_tool not in supported_tools:
426 _non_installable_dependencies[dependency_name]['active'] = (value!=False)389 logger.error("HEPToolsInstaller.py supports the option '--update' only for the following tools:")
427 elif option.startswith('--veto_'):390 logger.error(" %s"%supported_tools)
428 dependency_name = option[7:]391 sys.exit(9)
429 if dependency_name in _HepTools:392 _keep_existing_installation = True
430 _HepTools[dependency_name]['install_path'] = None 393 if option=='--keep_source':
431 else:394 _keep_source = True
432 # Special treatment for dependencies that cannot be directly installed in this installer395 if option=='--prefix':
433 _non_installable_dependencies[dependency_name]['path'] = None 396 if not os.path.isdir(value):
434 _non_installable_dependencies[dependency_name]['active'] = False397 logger.info("Creating root directory '%s'.", os.path.abspath(value))
435398 os.mkdir(os.path.abspath(value))
436 elif option.endswith('_tarball'):399 _prefix = os.path.abspath(value)
437 access_mode = 'online' if '//' in value else 'local'400 elif option=='--fortran_compiler':
438 if access_mode=='local':401 _gfortran = value
439 value = os.path.abspath(value)402 elif option=='--cpp_compiler':
440 _HepTools[option[2:-8]]['tarball'] = [access_mode, value]403 _cpp = value
441 # Flag the tarball of this tool as specified404 elif option=='--no_MA5_further_install':
442 _tarballs_specified.append(option[2:-8]) 405 _HepTools['madanalysis5']['MA5_further_install']=False
443 elif option.startswith('--version='):406 elif option=='--no_root_in_MA5':
444 _version = value407 _HepTools['madanalysis5']['use_root_if_available']=False
445408 elif option=='--cpp_standard_lib':
446409 if value not in ['-lc++','-lstdc++']:
447# Adapt paths according to MG5 version specified410 logger.error( "ERROR: Option '--cpp_standard_lib' must be either '-lc++' or '-libstdc++', not '%s'.", value)
448if _mg5_version:411 sys.exit(9)
449 adapt_tarball_paths_according_to_MG5_version(_mg5_version)412 _cpp_standard_lib = value
450413 elif option=='--mg5_path':
451# force code version if request by the user414 _mg5_path = value
452if _version:415 # Try to gather MG5_version
453 if 'format_version' in _HepTools[target_tool]:416 try:
454 _version = _HepTools[target_tool]['format_version'](_version)417 _mg5_version = None
455 if '%(version)s' in _HepTools[target_tool]['tarball'][1]:418 for line in open(pjoin(_mg5_path,'VERSION'),'r').read().split('\n'):
456 _HepTools[target_tool]['tarball'][1]=_HepTools[target_tool]['tarball'][1]%{'version':_version}419 if line.startswith('version ='):
457 else:420 _mg5_version = LooseVersion(line[9:].strip())
458 raise Exception, 'fail to specify version for this tools.'421 break
459422 except:
460# Apply substitutions if necessary:423 raise
461424 _mg5_version = None
462for tool in _HepTools:425 elif option.startswith('--with_'):
463 if _HepTools[tool]['install_path']:426 dependency_name = _dependency_names_map[option[7:]] if option[7:] in _dependency_names_map else option[7:]
464 _HepTools[tool]['install_path']=_HepTools[tool]['install_path']%\427 value = with_option_parser(value)
465 {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path }428 if dependency_name in _HepTools:
466 if _HepTools[tool]['tarball'][0]=='local':429 _HepTools[dependency_name]['install_path'] = value
467 _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%\430 else:
468 {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path }431 # Special treatment for dependencies that cannot be directly installed in this installer
469 432 _non_installable_dependencies[dependency_name]['path'] = value if (value not in ['Default',False, None]) else None
470 if _HepTools[tool]['tarball'][0]=='online':433 _non_installable_dependencies[dependency_name]['active'] = (value!=False)
471 version = _HepTools[tool]['version']434 elif option.startswith('--veto_'):
472 if 'format_version' in _HepTools[tool]:435 dependency_name = option[7:]
473 version = _HepTools[tool]['format_version'](version)436 if dependency_name in _HepTools:
474 _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%{'version':version}437 _HepTools[dependency_name]['install_path'] = None
475 438 else:
476 new_libs = []439 # Special treatment for dependencies that cannot be directly installed in this installer
477 for lib in _HepTools[tool]['libraries']:440 _non_installable_dependencies[dependency_name]['path'] = None
478 for libext in _lib_extensions:441 _non_installable_dependencies[dependency_name]['active'] = False
479 if lib%{'libextension':libext} not in new_libs:442
480 new_libs.append(lib%{'libextension':libext})443 elif option.endswith('_tarball'):
481 _HepTools[tool]['libraries'] = new_libs444 access_mode = 'online' if '//' in value else 'local'
482445 if access_mode=='local':
483446 value = os.path.abspath(value)
484# Make sure it is not already installed, but if the directory is empty, then remove it447 _HepTools[option[2:-8]]['tarball'] = [access_mode, value]
485if os.path.isdir(pjoin(_prefix,target_tool)):448 # Flag the tarball of this tool as specified
486 if os.listdir(pjoin(_prefix,target_tool)) in [[],['%s_install.log'%target_tool]]:449 _tarballs_specified.append(option[2:-8])
487 shutil.rmtree(pjoin(_prefix,target_tool))450 elif option.startswith('--version='):
488 _keep_existing_installation = False451 _version = value
452
453
454 # Adapt paths according to MG5 version specified
455 if _mg5_version:
456 adapt_tarball_paths_according_to_MG5_version(_mg5_version)
457
458 # force code version if request by the user
459 if _version:
460 if 'format_version' in _HepTools[target_tool]:
461 _version = _HepTools[target_tool]['format_version'](_version)
462 if '%(version)s' in _HepTools[target_tool]['tarball'][1]:
463 _HepTools[target_tool]['tarball'][1]=_HepTools[target_tool]['tarball'][1]%{'version':_version}
464 else:
465 raise Exception, 'fail to specify version for this tools.'
466
467 # Apply substitutions if necessary:
468
469 for tool in _HepTools:
470 if _HepTools[tool]['install_path']:
471 _HepTools[tool]['install_path']=_HepTools[tool]['install_path']%\
472 {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path }
473 if _HepTools[tool]['tarball'][0]=='local':
474 _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%\
475 {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path }
476
477 if _HepTools[tool]['tarball'][0]=='online':
478 version = _HepTools[tool]['version']
479 if 'format_version' in _HepTools[tool]:
480 version = _HepTools[tool]['format_version'](version)
481 _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%{'version':version}
482
483 new_libs = []
484 for lib in _HepTools[tool]['libraries']:
485 for libext in _lib_extensions:
486 if lib%{'libextension':libext} not in new_libs:
487 new_libs.append(lib%{'libextension':libext})
488 _HepTools[tool]['libraries'] = new_libs
489
490
491 # Make sure it is not already installed, but if the directory is empty, then remove it
492 if os.path.isdir(pjoin(_prefix,target_tool)):
493 if os.listdir(pjoin(_prefix,target_tool)) in [[],['%s_install.log'%target_tool]]:
494 shutil.rmtree(pjoin(_prefix,target_tool))
495 _keep_existing_installation = False
496 else:
497 if not _keep_existing_installation:
498 if not _overwrite_existing_installation:
499 logger.warning( "The specified path '%s' already contains an installation of tool '%s'.", _prefix, target_tool)
500 logger.warning( "Rerun the HEPToolInstaller.py script again with the option '--force' if you want to overwrite it.")
501 sys.exit(66)
502 else:
503 logger.info("Removing existing installation of tool '%s' in '%s'.", target_tool, _prefix)
504 shutil.rmtree(pjoin(_prefix,target_tool))
489 else:505 else:
490 if not _keep_existing_installation:506 _keep_existing_installation = False
491 if not _overwrite_existing_installation:
492 logger.warning( "The specified path '%s' already contains an installation of tool '%s'.", _prefix, target_tool)
493 logger.warning( "Rerun the HEPToolInstaller.py script again with the option '--force' if you want to overwrite it.")
494 sys.exit(66)
495 else:
496 logger.info("Removing existing installation of tool '%s' in '%s'.", target_tool, _prefix)
497 shutil.rmtree(pjoin(_prefix,target_tool))
498else:
499 _keep_existing_installation = False
500507
501# TMP_directory (designed to work as with statement) and go to it508# TMP_directory (designed to work as with statement) and go to it
502class TMP_directory(object):509class TMP_directory(object):
@@ -681,11 +688,17 @@
681def install_lhapdf6(tmp_path):688def install_lhapdf6(tmp_path):
682 """Installation operations for lhapdf6"""689 """Installation operations for lhapdf6"""
683 lhapdf6_log = open(pjoin(_HepTools['lhapdf6']['install_path'],"lhapdf6_install.log"), "w")690 lhapdf6_log = open(pjoin(_HepTools['lhapdf6']['install_path'],"lhapdf6_install.log"), "w")
691 cxx_flags = '-O'
692 for flag in ['-static-libstdc++']:
693 if test_cpp_compiler([flag]):
694 cxx_flags = flag
695
684 subprocess.call([pjoin(_installers_path,'installLHAPDF6.sh'),696 subprocess.call([pjoin(_installers_path,'installLHAPDF6.sh'),
685 _HepTools['boost']['install_path'],697 _HepTools['boost']['install_path'],
686 _HepTools['lhapdf6']['install_path'],698 _HepTools['lhapdf6']['install_path'],
687 _HepTools['lhapdf6']['version'],699 _HepTools['lhapdf6']['version'],
688 _HepTools['lhapdf6']['tarball'][1]],700 _HepTools['lhapdf6']['tarball'][1],
701 cxx_flags],
689 stdout=lhapdf6_log,702 stdout=lhapdf6_log,
690 stderr=lhapdf6_log)703 stderr=lhapdf6_log)
691 lhapdf6_log.close()704 lhapdf6_log.close()
@@ -765,7 +778,7 @@
765778
766 # Run the installation script779 # Run the installation script
767 mg5amc_py8_interface_log = open(pjoin(_HepTools['mg5amc_py8_interface']['install_path'],"mg5amc_py8_interface_install.log"), "w")780 mg5amc_py8_interface_log = open(pjoin(_HepTools['mg5amc_py8_interface']['install_path'],"mg5amc_py8_interface_install.log"), "w")
768 subprocess.call([pjoin(sys.executable, _HepTools['mg5amc_py8_interface']['install_path'],'compile.py')]+options, 781 subprocess.call([sys.executable, pjoin(_HepTools['mg5amc_py8_interface']['install_path'],'compile.py')]+options,
769 stdout=mg5amc_py8_interface_log,782 stdout=mg5amc_py8_interface_log,
770 stderr=mg5amc_py8_interface_log)783 stderr=mg5amc_py8_interface_log)
771 mg5amc_py8_interface_log.close()784 mg5amc_py8_interface_log.close()
@@ -1307,34 +1320,36 @@
1307 logger.info(" > Now aborting installation of tool '%s'."%target_tool)1320 logger.info(" > Now aborting installation of tool '%s'."%target_tool)
1308 sys.exit(9)1321 sys.exit(9)
13091322
1310_environ = dict(os.environ)1323
1311try: 1324if "__main__" == __name__:
1312 os.environ["CXX"] = _cpp1325 _environ = dict(os.environ)
1313 os.environ["FC"] = _gfortran1326 try:
1314 # Also add the bin directory of the HEPTools install location, as we might need some of the executables installed there like cmake1327 os.environ["CXX"] = _cpp
1315 os.environ["PATH"] = pjoin(_prefix,'bin')+os.pathsep+os.environ["PATH"]1328 os.environ["FC"] = _gfortran
1316 install_with_dependencies(target_tool,is_main_target=True)1329 # Also add the bin directory of the HEPTools install location, as we might need some of the executables installed there like cmake
1317except ZeroDivisionError as e:1330 os.environ["PATH"] = pjoin(_prefix,'bin')+os.pathsep+os.environ["PATH"]
1331 install_with_dependencies(target_tool,is_main_target=True)
1332 except ZeroDivisionError as e:
1333 os.environ.clear()
1334 os.environ.update(_environ)
1335 logger.critical("The following error occured during the installation of '%s' (and its dependencies):\n%s"%(target_tool,repr(e)))
1336 sys.exit(9)
1337
1318 os.environ.clear()1338 os.environ.clear()
1319 os.environ.update(_environ)1339 os.environ.update(_environ)
1320 logger.critical("The following error occured during the installation of '%s' (and its dependencies):\n%s"%(target_tool,repr(e)))1340
1321 sys.exit(9)1341 if check_successful_installation(target_tool):
13221342 # Successful installation, now copy the installed components directly under HEPTools
1323os.environ.clear()1343 finalize_installation(target_tool)
1324os.environ.update(_environ)1344 logger.info("Successful installation of '%s' in '%s'."%(target_tool,_prefix))
13251345 logger.debug("See installation log at '%s'."%pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool))
1326if check_successful_installation(target_tool):1346 sys.exit(0)
1327 # Successful installation, now copy the installed components directly under HEPTools1347 else:
1328 finalize_installation(target_tool)1348 logger.warning("A problem occured during the installation of '%s'.", target_tool)
1329 logger.info("Successful installation of '%s' in '%s'."%(target_tool,_prefix))1349 try:
1330 logger.debug("See installation log at '%s'."%pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool))1350 logger.warning("Content of the installation log file '%s':\n\n%s"%(\
1331 sys.exit(0)1351 pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool),
1332else:1352 open(pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool),'r').read()))
1333 logger.warning("A problem occured during the installation of '%s'.", target_tool)1353 except IOError:
1334 try:1354 logger.warning("No additional information on the installation problem available.")
1335 logger.warning("Content of the installation log file '%s':\n\n%s"%(\1355 sys.exit(9)
1336 pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool),
1337 open(pjoin(_HepTools[target_tool]['install_path'],'%s_install.log'%target_tool),'r').read()))
1338 except IOError:
1339 logger.warning("No additional information on the installation problem available.")
1340 sys.exit(9)
13411356
=== modified file 'installLHAPDF6.sh'
--- installLHAPDF6.sh 2016-04-20 19:10:54 +0000
+++ installLHAPDF6.sh 2019-02-05 10:15:18 +0000
@@ -10,6 +10,7 @@
10 INSTALLD="$2"10 INSTALLD="$2"
11 VERSION="$3"11 VERSION="$3"
12 TARBALL="$4"12 TARBALL="$4"
13 CXXFLAGS="$5"
13 LOCAL=$INSTALLD14 LOCAL=$INSTALLD
1415
15 # set SLC5 platform name:16 # set SLC5 platform name:
@@ -32,7 +33,7 @@
32 cd LHAPDF-${VERSION}/33 cd LHAPDF-${VERSION}/
3334
34 echo " Configure LHAPDF"35 echo " Configure LHAPDF"
35 LIBRARY_PATH=$LD_LIBRARY_PATH ./configure CXXFLAGS="-static-libstdc++" --prefix=$LOCAL --bindir=$LOCAL/bin --datadir=$LOCAL/share --libdir=$LOCAL/lib --with-boost=$BOOST --enable-static36 LIBRARY_PATH=$LD_LIBRARY_PATH ./configure CXXFLAGS="$CXXFLAGS" --prefix=$LOCAL --bindir=$LOCAL/bin --datadir=$LOCAL/share --libdir=$LOCAL/lib --with-boost=$BOOST --enable-static
3637
37 echo " Compile LHAPDF6"38 echo " Compile LHAPDF6"
38 LIBRARY_PATH=$LD_LIBRARY_PATH make39 LIBRARY_PATH=$LD_LIBRARY_PATH make

Subscribers

People subscribed via source and target branches

to all changes: