Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare new HEAD release based on LCG_101 #144

Merged
merged 14 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ilcsoft/edm4hep.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def __init__(self, userInput):
self.download.gituser = 'key4hep'
self.download.gitrepo = 'edm4hep'

self.reqfiles = [ ["install/lib/libedm4hep.so", "install/lib/libedm4hep.dylib" ]]
self.reqfiles = [["install/lib/libedm4hep.so",
"install/lib64/libedm4hep.so",
"install/lib/libedm4hep.dylib"]]

self.reqmodules = [ "podio" ]
# self.optmodules = [ "SIO" ]
Expand Down Expand Up @@ -63,4 +65,6 @@ def compile(self):
def postCheckDeps(self):
BaseILC.postCheckDeps(self)

self.env[ 'edm4hep_DIR' ] = self.installPath + "/install/lib/cmake/EDM4HEP"
self.env['EDM4HEP_DIR'] = self.installPath + "/install"
self.envpath["LD_LIBRARY_PATH"].append("$EDM4HEP_DIR/lib")
self.envpath["LD_LIBRARY_PATH"].append("$EDM4HEP_DIR/lib64")
4 changes: 4 additions & 0 deletions ilcsoft/ilcsoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ def makeinstall(self):
# export Python in PATH and LD_LIBRARY_PATH
f.write( 'export PATH='+py_path+'/bin:${PATH}' + os.linesep )
f.write( 'export LD_LIBRARY_PATH='+py_path+'/lib:${LD_LIBRARY_PATH}' + os.linesep + os.linesep )
# copy the PYTHONPATH verbatim from the build setup if it is set
python_path = os.getenv('PYTHONPATH')
if python_path:
f.write('export PYTHONPATH=' + python_path + os.linesep + os.linesep )

f.write( 'export CXX=' + compiler + os.linesep )
ccompiler = self.env["CC"]
Expand Down
9 changes: 7 additions & 2 deletions ilcsoft/podio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def __init__(self, userInput):
self.download.gituser = 'AIDASoft'
self.download.gitrepo = 'podio'

self.reqfiles = [ ["install/lib/libpodio.so", "install/lib/libpodio.dylib" ]]
self.reqfiles = [["install/lib/libpodio.so",
"install/lib64/libpodio.so",
"install/lib/libpodio.dylib"]]

self.reqmodules = [ "ROOT" ]
self.optmodules = [ "SIO" ]
Expand Down Expand Up @@ -63,4 +65,7 @@ def compile(self):
def postCheckDeps(self):
BaseILC.postCheckDeps(self)

self.env[ 'podio_DIR' ] = self.installPath + "/install/lib/cmake/podio"
self.env['podio_DIR'] = self.installPath + "/install"
self.envpath["LD_LIBRARY_PATH"].append("$podio_DIR/lib")
self.envpath["LD_LIBRARY_PATH"].append("$podio_DIR/lib64")
self.envpath["PYTHONPATH"].append("$podio_DIR/python")
9 changes: 9 additions & 0 deletions ilcsoft/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
##################################################

# custom imports
import os
from .baseilc import BaseILC
from .util import *

Expand Down Expand Up @@ -131,6 +132,14 @@ def compile(self):



if self.version > "6.19.0":
# Need to symlink two cmake scripts that are not installed properly
# otherwise and would break packages that depend on ROOT
for mod in ['RootMacros.cmake', 'RootTestDriver.cmake']:
link_path = os.path.join(self.installPath, 'cmake', mod)
src = os.path.join(self.installPath, 'cmake', 'modules', mod)
os.symlink(src, link_path)

def postCheckDeps(self):
BaseILC.postCheckDeps(self)
# Required for LCIO installation.
Expand Down
2 changes: 1 addition & 1 deletion ilcsoft/sio.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def postCheckDeps(self):
if self.installPath != "/usr":
self.envpath["PATH"].append( "$SIO_DIR/bin" )
self.envpath["LD_LIBRARY_PATH"].append( "$SIO_DIR/lib" )

self.envpath["LD_LIBRARY_PATH"].append( "$SIO_DIR/lib64" )
10 changes: 6 additions & 4 deletions releases/HEAD/release-ilcsoft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ path_where_this_file_lives = os.path.dirname( config_file )
versions_file = os.path.join( path_where_this_file_lives, "release-versions-HEAD.py" )
exec(compile(open(versions_file, "rb").read(), versions_file, "exec"))

print "Do we install nightlies? ", nightlies
print("Do we install nightlies? ", nightlies)

# installation directory
if not 'ilcsoft_install_dir' in dir():
Expand Down Expand Up @@ -72,11 +72,11 @@ ilcsoft.envcmake["Boost_NO_BOOST_CMAKE"] = 'ON'
#

# ----- build and install documentation -------------
ilcsoft.envcmake["INSTALL_DOC"]="OFF"
ilcsoft.envcmake["INSTALL_DOC"]="ON"


ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "Debug"
#ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "RelWithDebInfo"
# ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "Debug"
ilcsoft.envcmake["CMAKE_BUILD_TYPE"]= "RelWithDebInfo"
ilcsoft.downloadType = "GitHub"
#ilcsoft.downloadType = "svn-desy"

Expand Down Expand Up @@ -111,6 +111,8 @@ ilcsoft.install( MarlinReco( MarlinReco_version ))
ilcsoft.module("MarlinReco").envcmake["MARLINRECO_FORTRAN"]='OFF'

ilcsoft.install( PandoraAnalysis( PandoraAnalysis_version ))
# Until https://github.com/PandoraPFA/LCPandoraAnalysis/pull/17 is merged
ilcsoft.module("PandoraAnalysis").envcmake["INSTALL_DOC"] = "OFF"

ilcsoft.install( PandoraPFANew( PandoraPFANew_version ))

Expand Down
31 changes: 14 additions & 17 deletions releases/HEAD/release-versions-HEAD.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
ilcsoft_release='HEAD-'+today
# ----------------------------------------------------------------------------

#-----------------------
# we now always build with c++11 ?
# This variable is deprecated and replaced by cxx_standard
# use_cpp11 = False
# if nightlies:
# use_cpp11 = nb_use_cpp11
# print "******************* use_cpp11", use_cpp11

# which cxx standard to use
cxx_standard = 17

Expand All @@ -31,18 +23,23 @@
pass

#===============================================================================
# use a compiler that knows c++11, run
# use a compiler that knows c++17, run
#
'''
source /afs/cern.ch/sw/lcg/contrib/gcc/4.9.3/x86_64-slc6/setup.sh
export PATH=/afs/cern.ch/sw/lcg/releases/LCG_87/Python/2.7.10/x86_64-slc6-gcc49-opt/bin:$PATH
export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/releases/LCG_87/Python/2.7.10/x86_64-slc6-gcc49-opt/lib:$LD_LIBRARY_PATH
# --- gcc from LCG_101
source /cvmfs/sft.cern.ch/lcg/releases/gcc/10.3.0/x86_64-centos7/setup.sh

# --- python from LCG_101
export PATH=/cvmfs/sft.cern.ch/lcg/releases/Python/3.9.6-b0f98/x86_64-centos7-gcc10-opt/bin:${PATH}
export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/Python/3.9.6-b0f98/x86_64-centos7-gcc10-opt/lib:${LD_LIBRARY_PATH}
export PYTHONPATH=/cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc10-opt/lib/python3.9/site-packages

# or on cvmfs:
# --- git from LCG_101
export PATH=/cvmfs/sft.cern.ch/lcg/releases/git/2.29.2-e475b/x86_64-centos7-gcc10-opt/bin:${PATH}
export GIT_EXEC_PATH=/cvmfs/sft.cern.ch/lcg/releases/git/2.29.2-e475b/x86_64-centos7-gcc10-opt/libexec/git-core

source /cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6/setup.sh
export PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_87/Python/2.7.10/x86_64-slc6-gcc49-opt/bin:$PATH
export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_87/Python/2.7.10/x86_64-slc6-gcc49-opt/lib:$LD_LIBRARY_PATH
# --- use a suitable mysql (also LCG_101)
export MYSQL_DIR=/cvmfs/sft.cern.ch/lcg/releases/mysql/10.4.20-c0154/x86_64-centos7-gcc10-opt
'''
# before starting the installation
#================================================================================
Expand Down Expand Up @@ -112,7 +109,7 @@
platfDefault = '/usr/local'

# ----- mysql --------------------------------------------------------
MySQL_version = "5.0.45"
MySQL_version = "10.4.20"
MySQL_path = platfDefault

# overwrite with a patch set in the environment
Expand Down
14 changes: 14 additions & 0 deletions scripts/use_gcc103_cvmfs_centos7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# --- gcc from LCG_101
source /cvmfs/sft.cern.ch/lcg/releases/gcc/10.3.0/x86_64-centos7/setup.sh

# --- python from LCG_101
export PATH=/cvmfs/sft.cern.ch/lcg/releases/Python/3.9.6-b0f98/x86_64-centos7-gcc10-opt/bin:${PATH}
export LD_LIBRARY_PATH=/cvmfs/sft.cern.ch/lcg/releases/Python/3.9.6-b0f98/x86_64-centos7-gcc10-opt/lib:${LD_LIBRARY_PATH}
export PYTHONPATH=/cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc10-opt/lib/python3.9/site-packages

# --- git from LCG_101
export PATH=/cvmfs/sft.cern.ch/lcg/releases/git/2.29.2-e475b/x86_64-centos7-gcc10-opt/bin:${PATH}
export GIT_EXEC_PATH=/cvmfs/sft.cern.ch/lcg/releases/git/2.29.2-e475b/x86_64-centos7-gcc10-opt/libexec/git-core

# --- use a suitable mysql (also LCG_101)
export MYSQL_DIR=/cvmfs/sft.cern.ch/lcg/releases/mysql/10.4.20-c0154/x86_64-centos7-gcc10-opt