Skip to content
Snippets Groups Projects
Commit 8cba8bd7 authored by Graeme Stewart's avatar Graeme Stewart
Browse files

Projects/AtlasCoreRunTime deleted from master

Former-commit-id: 8080b516
parent 0ce2fdc1
No related branches found
No related tags found
No related merge requests found
# $Id: CMakeLists.txt 726577 2016-02-27 09:55:50Z krasznaa $
#
# Package listing the runtime dependencies (not set up by regular packages)
# of the AtlasCore project.
#
# The name of the package:
atlas_subdir( AtlasCoreRunTime )
# Find the necessary packages, which sets them up for the runtime
# environment:
find_package( pytools )
find_package( pyanalysis )
find_package( pygraphics )
package AtlasCoreRunTime
author David Quarrie <David.Quarrie@cern.ch>
include_path none
use MinimalRunTime MinimalRunTime-* Control -no_auto_imports
macro use_Ant "Ant Ant-* External -no_auto_imports" \
noJava ""
use $(use_Ant)
use AtlasAIDA AtlasAIDA-* External -no_auto_imports
use AtlasBoost AtlasBoost-* External -no_auto_imports
use AtlasCLHEP AtlasCLHEP-* External -no_auto_imports
use AtlasCOOL AtlasCOOL-* External -no_auto_imports
use AtlasCORAL AtlasCORAL-* External -no_auto_imports
use AtlasCppUnit AtlasCppUnit-* External -no_auto_imports
use AtlasDBRelease AtlasDBRelease-* External -no_auto_imports
use AtlasDataArea AtlasDataArea-* External -no_auto_imports
use AtlasEigen AtlasEigen-* External -no_auto_imports
use AtlasExpat AtlasExpat-* External -no_auto_imports
use AtlasExternalArea AtlasExternalArea-* External -no_auto_imports
use AtlasGSL AtlasGSL-* External -no_auto_imports
use AtlasGPerfTools AtlasGPerfTools-* External -no_auto_imports
use AtlasMagField AtlasMagField-* External -no_auto_imports
use AtlasMatplotlib AtlasMatplotlib-* External -no_auto_imports
use AtlasMKL AtlasMKL-* External -no_auto_imports
use AtlasOracle AtlasOracle-* External -no_auto_imports
use AtlasPOOL AtlasPOOL-* External -no_auto_imports
use AtlasPyROOT AtlasPyROOT-* External -no_auto_imports
use AtlasPython AtlasPython-* External -no_auto_imports
use AtlasRELAX AtlasRELAX-* External -no_auto_imports
use AtlasROOT AtlasROOT-* External -no_auto_imports
use AtlasReflex AtlasReflex-* External -no_auto_imports
use AtlasSQLite AtlasSQLite-* External -no_auto_imports
use AtlasValgrind AtlasValgrind-* External -no_auto_imports
use yampl yampl-* External -no_auto_imports
use PathResolver PathResolver-* Tools -no_auto_imports
macro use_Axis "Axis Axis-* External -no_auto_imports" \
noJava ""
use $(use_Axis)
macro use_CERNJava "CERNJavaInstallation CERNJavaInstallation-* External -no_auto_imports" \
noJava ""
use $(use_CERNJava)
use DataCollection DataCollection-* External -no_auto_imports
use ExternalPolicy ExternalPolicy-* External -no_auto_imports
use GaudiInterface GaudiInterface-* External -no_auto_imports
macro use_JavaSDK "JavaSDK JavaSDK-* External -no_auto_imports" \
noJava ""
use $(use_JavaSDK)
macro use_MMMySQL "MMMySQL MMMySQL-* External -no_auto_imports" \
noJava ""
use $(use_MMMySQL)
#use MySQL MySQL-* External -no_auto_imports
use pyAMI pyAMI-* External -no_auto_imports
# Setup LCG_Interfaces entries that aren't referenced by an equivalent ATLAS External/XXX entry
# Most of these are actually in the DetCommon project as explicit overrides, but there isn't a
# DetCommonRunTime package, which is why they are setup here.
use pytools * LCG_Interfaces -no_auto_imports
use pyanalysis * LCG_Interfaces -no_auto_imports
### needed for pyparsing
use pygraphics * LCG_Interfaces -no_auto_imports
# Eliminate false entries from MANPATH
setup_script "$(EXTERNALPOLICYROOT)/cmt/cmt_setup_manpath"
# Setup entries for the test area in the various path environment variables (PATH, PYTHONPATH etc.)
# if a test area is setup but doesn't exist. This reverses the action of a GaudiPython cmtpath_pattern
# which removes all non-existent directories from these environment variables (which in general is the
# correct thing to do) but handles the use case where the developer creates the test area later, or
# more commonly, the test area already exists but the InstallArea hasn't yet been created.
macro setup_runtime_helper_script "$(ATLASCORERUNTIMEROOT)/cmt/setup_runtime_helper" \
no-setup-runtime-helper ""
cmtpath_pattern \
setup_script $(setup_runtime_helper_script)
# Slim PATH if run-time environment setup as well as the "slim" tag
macro atlascore_path "" \
slim "$(EXTERNALPOLICYROOT)/cmt/cmt_slim_path"
setup_script $(atlascore_path)
private
macro post_install_script "$(ATLASCOMMONPOLICYROOT)/scripts/setup_runtime_cache.sh"
apply_pattern do_setup_runtime_cache
#!/bin/csh
#
# Helper script to setup the test area entries in the various paths
# (PATH, LD_LIBRARY_PATH, PYTHONPATH, DATAPATH, JOBOPTIONSEARCHPATH)
# if the test area doesn't exist, or the InstallArea within the test
# area doesn't yet exist.
#
# The test area is taken as the first entry of CMTPATH if it exists and is non-empty
#
# Author:-
# David Quarrie
#-
if ( ${?ATLAS_NO_SETUP_RUNTIME_HELPER} ) then
if ( "${ATLAS_NO_SETUP_RUNTIME_HELPER}" != "" ) exit
endif
# Determine the current Python 2-digit version for later use within PYTHONPATH
set s_vers=`python -c "import sys; print '%s.%s' % sys.version_info[:2]"`
if ( $?CMTPATH != 0 ) then
set s_dirs=`\echo $CMTPATH | \sed 's/:/ /g'`
foreach s_dir ($s_dirs)
set s_test=`echo $LD_LIBRARY_PATH | \grep -E ${s_dir}`
if ( "${s_test}" == "" ) then
set s_lib=`echo $LD_LIBRARY_PATH | \grep -E "^/lib:"`
if ( "${s_lib}" == "" ) then
setenv LD_LIBRARY_PATH ${s_dir}/InstallArea/${CMTCONFIG}/lib:${LD_LIBRARY_PATH}
else
set s_lib=`echo $LD_LIBRARY_PATH | \sed 's#^/lib:##'`
setenv LD_LIBRARY_PATH /lib:${s_dir}/InstallArea/${CMTCONFIG}/lib:${s_lib}
endif
unset s_lib
endif
set s_test=`echo $PATH | grep ${s_dir}`
if ( "${s_test}" == "" ) then
setenv PATH ${s_dir}/InstallArea/share/bin:${s_dir}/InstallArea/${CMTCONFIG}/bin:${PATH}
endif
set s_test=`echo $PYTHONPATH | grep ${s_dir}`
if ( "${s_test}" == "" ) then
setenv PYTHONPATH ${s_dir}/InstallArea/python:${s_dir}/InstallArea/${CMTCONFIG}/lib/python${s_vers}:${PYTHONPATH}
endif
set s_test=`echo $JOBOPTSEARCHPATH | grep ${s_dir}`
if ( "${s_test}" == "" ) then
setenv JOBOPTSEARCHPATH ${s_dir}/InstallArea/jobOptions:${JOBOPTSEARCHPATH}
endif
set s_test=`echo $DATAPATH | grep ${s_dir}`
if ( "${s_test}" == "" ) then
setenv DATAPATH ${s_dir}/InstallArea/share:${DATAPATH}
endif
unset s_dir
unset s_test
break
end
unset s_dirs
endif
#+
# If the SLC4 compatibility libraries are in LD_LIBRARY_PATH, move them to the front, before /lib, such
# that libraries in the latter can be overridden.
#-
set s_dirs=`\echo $LD_LIBRARY_PATH | \sed 's/:/ /g'`
set s_path=
set s_compat=
foreach s_dir ( $s_dirs )
set s_test=`echo $s_dir | \grep "/slc4compat/"`
if ( "${s_test}" == "" ) then
if ( "${s_path}" == "" ) then
set s_path=${s_dir}
else
set s_path=${s_path}:${s_dir}
endif
else
set s_compat=${s_dir}
endif
end
if ( "${s_compat}" != "" ) then
set s_path=${s_compat}:${s_path}
endif
setenv LD_LIBRARY_PATH ${s_path}
unset s_dirs
unset s_path
unset s_compat
#!/bin/sh
#+
# Helper script to setup the test area entries in the various paths
# (PATH, LD_LIBRARY_PATH, PYTHONPATH, DATAPATH, JOBOPTIONSEARCHPATH)
# if the test area doesn't exist, or the InstallArea within the test
# area doesn't yet exist.
#
# The test area is taken as the first entry of CMTPATH if it's non-empty
#
# Author:-
# David Quarrie
#-
[ -n "${ATLAS_NO_SETUP_RUNTIME_HELPER:-}" ] && return
# Determine the current Python 2-digit version for later use by PYTHONPATH
s_vers=`python -c "import sys; print '%s.%s' % sys.version_info[:2]"`
if [ ! -z "${CMTPATH}" ]; then
s_dirs=`\echo $CMTPATH | \sed 's/:/ /g'`
for s_dir in `\echo $s_dirs`; do
s_test=`echo $LD_LIBRARY_PATH | \grep -E ${s_dir}`
if [ -z "${s_test}" ]; then
s_lib=`echo $LD_LIBRARY_PATH | \grep -E "^/lib:"`
if [ -z ${s_lib} ]; then
export LD_LIBRARY_PATH=${s_dir}/InstallArea/${CMTCONFIG}/lib:${LD_LIBRARY_PATH}
else
s_lib=`echo $LD_LIBRARY_PATH | \sed 's#^/lib:##'`
export LD_LIBRARY_PATH=/lib:${s_dir}/InstallArea/${CMTCONFIG}/lib:${s_lib}
fi
s_lib=
fi
s_test=`\echo $PATH | \grep ${s_dir}`
if [ -z "${s_test}" ]; then
export PATH=${s_dir}/InstallArea/share/bin:${s_dir}/InstallArea/${CMTCONFIG}/bin:${PATH}
fi
s_test=`\echo $PYTHONPATH | \grep ${s_dir}`
if [ -z "${s_test}" ]; then
export PYTHONPATH=${s_dir}/InstallArea/python:${s_dir}/InstallArea/${CMTCONFIG}/lib/python${s_vers}:${PYTHONPATH}
fi
s_test=`\echo $JOBOPTSEARCHPATH | \grep ${s_dir}`
if [ -z "${s_test}" ]; then
export JOBOPTSEARCHPATH=${s_dir}/InstallArea/jobOptions:${JOBOPTSEARCHPATH}
fi
s_test=`\echo $DATAPATH | \grep ${s_dir}`
if [ -z "${s_test}" ]; then
export DATAPATH=${s_dir}/InstallArea/share:${DATAPATH}
fi
unset s_dir
unset s_test
break
done
unset s_dirs
fi
#+
# If the SLC4 compatibility libraries are in LD_LIBRARY_PATH, move them to the front, before /lib, such
# that libraries in the latter can be overridden.
#-
s_dirs=`\echo $LD_LIBRARY_PATH | \sed 's/:/ /g'`
s_path=
s_compat=
for s_dir in `\echo $s_dirs`; do
s_test=`echo $s_dir | \grep "/slc4compat/"`
if [ -z "${s_test}" ]; then
if [ -z "${s_path}" ]; then
s_path=${s_dir}
else
s_path=${s_path}:${s_dir}
fi
else
s_compat=${s_dir}
fi
done
if [ ! -z "${s_compat}" ]; then
s_path=${s_compat}:${s_path}
fi
export LD_LIBRARY_PATH=${s_path}
unset s_dirs
unset s_path
unset s_compat
unset s_vers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment