Commit ac5cc9ba authored by Simon Braß's avatar Simon Braß
Browse files

Update versions and add WZ Python support

parent affa8a51
Pipeline #9738 failed with stage
in 7 minutes and 50 seconds
......@@ -91,7 +91,8 @@ url_libtool="http://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.gz"
# url_cmake="https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz"
# O'Caml
url_ocaml="http://caml.inria.fr/pub/distrib/ocaml-4.10/ocaml-4.10.0.tar.gz"
url_ocaml="https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz"
dir_ocaml="ocaml-4.12.0"
# External tool dependencies
url_root="https://github.com/root-project/root/archive/v6-23-01.tar.gz"
......@@ -99,18 +100,18 @@ url_root="https://github.com/root-project/root/archive/v6-23-01.tar.gz"
# Whizard External Dependencies
url_hepmc="https://hepmc.web.cern.ch/hepmc/releases/hepmc2.06.10.tgz"
dir_hepmc="HepMC-2.06.10" # The HepMC packages comes with an enstranged nomenclature.
url_hepmc3="https://hepmc.web.cern.ch/hepmc/releases/HepMC3-3.2.1.tar.gz"
url_lhapdf="https://lhapdf.hepforge.org/downloads/?f=LHAPDF-6.2.3.tar.gz"
url_hepmc3="https://hepmc.web.cern.ch/hepmc/releases/HepMC3-3.2.3.tar.gz"
url_lhapdf="https://lhapdf.hepforge.org/downloads/?f=LHAPDF-6.3.0.tar.gz"
url_fastjet="http://fastjet.fr/repo/fastjet-3.3.4.tar.gz"
url_openloops="https://openloops.hepforge.org/downloads?f=OpenLoops-2.1.1.tar.gz"
url_openloops="https://openloops.hepforge.org/downloads?f=OpenLoops-2.1.2.tar.gz"
url_pythia8="http://home.thep.lu.se/~torbjorn/pythia8/pythia8305.tgz"
url_delphes="https://github.com/delphes/delphes/archive/3.4.2.tar.gz"
# WHIZARD
url_whizard="http://whizard.hepforge.org/whizard-2.8.2.tar.gz"
url_whizard="https://launchpad.net/whizard/3.0.x/3.0.0/+download/whizard-3.0.0.tar.gz"
# Analysis Tools
url_rivet="https://gitlab.com/hepcedar/rivetbootstrap/raw/3.1.1/rivet-bootstrap"
url_rivet="https://gitlab.com/hepcedar/rivetbootstrap/raw/3.1.4/rivet-bootstrap"
# #######################################################################
......@@ -216,7 +217,7 @@ build_hepmc2 () {
build_ocaml () {
local url="${1}"
local name="$(basename ${url} .tar.gz)"
local name="${dir_ocaml}"
test -d "${name}" || download_untar_pkg "${url}"
pushd "${name}" && \
./configure -prefix ${PREFIX} && \
......@@ -384,6 +385,7 @@ write_script () {
# #######################################################################
export PATH=${PREFIX}/bin:\${PATH}
export LD_LIBRARY_PATH=${PREFIX}/lib:${PREFIX}/OpenLoops/lib:\${LD_LIBRARY_PATH}
export PYTHONPATH=${PREFIX}/lib:${PYTHONPATH}
# #######################################################################
EOF
chmod 755 "${name}"
......@@ -470,11 +472,13 @@ HEPMC3_CONFIG=(
)
WHIZARD_CONFIG=(
--prefix="${PREFIX}"
--enable-lhapdf LHAPDF_DIR="${PREFIX}"
--enable-hepmc HEPMC_DIR="${PREFIX}"
--enable-pythia8 --with-pythia8="${PREFIX}"
--enable-fastjet --with-fastjet="${PREFIX}"
--enable-openloops --with-openloops="${PREFIX}/OpenLoops"
--enable-python
--disable-static
)
......@@ -492,7 +496,7 @@ function main() {
mkdir -p "${BUILD}"
cd "${BUILD}" || (echo "cd: failed to go to ${BUILD}" && exit 2)
if test $# -eq 0 || test "$@" == ""; then
local modes=(autotools hepmc2 hepmc3 lhapdf fastjet pythia8 openloops whizard bin)
local modes=(autotools ocaml hepmc2 hepmc3 lhapdf fastjet pythia8 openloops bin whizard)
else
local modes=("${@}")
fi
......@@ -560,6 +564,8 @@ function main() {
build_and_log_rivet "${url_rivet}" "${RIVET_CONFIG[*]}"
;;
whizard)
export PATH="${PREFIX}/bin:${PATH}"
export LD_LIBRARY_PATH="${PREFIX}/lib:${PREFIX}/OpenLoops/lib:${LD_LIBRARY_PATH}"
make_and_log "WHIZARD" "${url_whizard}" "${WHIZARD_CONFIG[*]}"
;;
whizard-config)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment