Skip to content

Commit

Permalink
Merge branch 'main' into dev/20241213-py-pyhepmc
Browse files Browse the repository at this point in the history
  • Loading branch information
joequant authored Dec 13, 2024
2 parents 284dfd9 + 5e7831f commit f724979
Show file tree
Hide file tree
Showing 80 changed files with 143 additions and 30 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/concretize-current-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,26 @@ jobs:
elif [ "${{ matrix.build_type }}" = "nightly" ]; then
env=key4hep-nightly-opt
pip3 install pyyaml
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-nightly-opt/packages.yaml ""
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-common-opt/packages.yaml ""
else
echo "Unknown build type"
exit 1
fi
cd /key4hep-spack/environments/${env}
spack env activate .
spack config add "upstreams:nightly-from-scratch:install_tree: $rel"
echo "========="
echo "spack.yaml"
cat spack.yaml
echo "========="
echo "packages.yaml"
cat packages.yaml
echo "========="
echo "key4hep-common/packages.yaml"
cat /key4hep-spack/environments/key4hep-common/packages.yaml
echo "========="
spack concretize >> conc.txt
cat conc.txt
echo "========================================="
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/concretize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,24 @@ jobs:
elif [ "${{ matrix.build_type }}" = "nightly" ]; then
env=key4hep-nightly-opt
pip3 install pyyaml
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-nightly-opt/packages.yaml ""
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-common-opt/packages.yaml ""
else
echo "Unknown build type"
exit 1
fi
cd /key4hep-spack/environments/${env}
echo "========="
echo "spack.yaml"
cat spack.yaml
echo "========="
echo "packages.yaml"
cat packages.yaml
echo "========="
echo "key4hep-common/packages.yaml"
cat /key4hep-spack/environments/key4hep-common/packages.yaml
echo "========="
spack env activate .
spack concretize
Expand Down
6 changes: 6 additions & 0 deletions environments/key4hep-common/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ packages:
buildable: true
curl:
require: +gssapi
ddmarlinpandora:
require: +monitoring
dd4hep:
require: +edm4hep+lcio+xercesc+hepmc3
gaudi:
Expand All @@ -26,8 +28,12 @@ packages:
hepmc3:
require: +python+rootio
# https://github.com/key4hep/key4hep-spack/issues/517
larcontent:
require: +monitoring
lccd:
require: +conddbmysql
lccontent:
require: +monitoring
llvm:
variants: ~flang~lldb~lld~lua~mlir~internal_unwind~polly~libomptarget~libomptarget_debug~gold~split_dwarf~llvm_dylib~link_llvm_dylib~omp_tsan~omp_as_runtime~code_signing~python~version_suffix~shlib_symbol_version~z3~zstd compiler-rt="none" libcxx="none" targets="x86"
marlin:
Expand Down
1 change: 1 addition & 0 deletions packages/aidatt/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
2 changes: 2 additions & 0 deletions packages/babayaga/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *

import os


Expand Down
2 changes: 2 additions & 0 deletions packages/bhlumi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *

import os


Expand Down
2 changes: 1 addition & 1 deletion packages/ced/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
2 changes: 1 addition & 1 deletion packages/cedviewer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/cepcsw/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 1 addition & 1 deletion packages/cldconfig/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
from spack.package import *


class Cldconfig(CMakePackage):
Expand Down
1 change: 1 addition & 0 deletions packages/clicperformance/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
2 changes: 1 addition & 1 deletion packages/clupatra/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/conddbmysql/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 1 addition & 1 deletion packages/conformaltracking/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/ddfastshowerml/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 1 addition & 1 deletion packages/ddkaltest/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
10 changes: 8 additions & 2 deletions packages/ddmarlinpandora/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down Expand Up @@ -42,10 +43,15 @@ class Ddmarlinpandora(CMakePackage, Ilcsoftpackage):
depends_on("larcontent")
depends_on("dd4hep")
depends_on("marlintrk")
depends_on("pandoramonitoring", when="+monitoring")

variant("monitoring", default=False, description="Enable Pandora Monitoring")

def setup_run_environment(self, env):
env.prepend_path("MARLIN_DLL", self.prefix.lib + "/libDDMarlinPandora.so")

def cmake_args(self):
# C++ Standard
return [f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}"]
return [
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}",
self.define_from_variant("PANDORA_MONITORING", "monitoring"),
]
2 changes: 1 addition & 1 deletion packages/dual-readout/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 2 additions & 0 deletions packages/emela/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Emela(CMakePackage):
"""Library that implements the evolution in pure QED of the unpolarised electron parton distribution functions (PDFs) up to next-to-leading logarithmic (NLL) approximation"""
Expand Down
1 change: 1 addition & 0 deletions packages/fcalclusterer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage
from spack.pkg.k4.key4hep_stack import k4_setup_env_for_framework_tests

Expand Down
2 changes: 1 addition & 1 deletion packages/fcc-config/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
from spack.package import *


class FccConfig(CMakePackage):
Expand Down
1 change: 1 addition & 0 deletions packages/fccanalyses/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
1 change: 1 addition & 0 deletions packages/fccdetectors/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
1 change: 1 addition & 0 deletions packages/fccsw/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
1 change: 1 addition & 0 deletions packages/forwardtracking/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
2 changes: 1 addition & 1 deletion packages/garlic/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/gear/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
2 changes: 2 additions & 0 deletions packages/generalbrokenlines/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Generalbrokenlines(CMakePackage):
"""Track refitting with broken lines in 3D."""
Expand Down
2 changes: 2 additions & 0 deletions packages/guinea-pig/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class GuineaPig(CMakePackage):
"""Generator of Unwanted Interactions for Numerical Experiment
Expand Down
2 changes: 2 additions & 0 deletions packages/ilcsoft/package.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import datetime

from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage
from spack.pkg.k4.key4hep_stack import install_setup_script

Expand Down Expand Up @@ -79,6 +80,7 @@ class Ilcsoft(BundlePackage, Key4hepPackage):
depends_on("marlinmlflavortagging")
depends_on("overlay")
depends_on("pandoraanalysis")
depends_on("pandoramonitoring")
depends_on("pandorapfa")
depends_on("physsim")
depends_on("raida")
Expand Down
1 change: 1 addition & 0 deletions packages/ilcutil/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/ildperformance/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/k4actstracking/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 1 addition & 1 deletion packages/k4clue/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
3 changes: 1 addition & 2 deletions packages/k4edm4hep2lcioconv/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *

from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
1 change: 1 addition & 0 deletions packages/k4fwcore/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage


Expand Down
1 change: 1 addition & 0 deletions packages/k4gaudipandora/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
1 change: 1 addition & 0 deletions packages/k4gen/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from spack.package import *
from spack.pkg.k4.key4hep_stack import Key4hepPackage


Expand Down
2 changes: 2 additions & 0 deletions packages/k4generatorsconfig/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class K4generatorsconfig(CMakePackage):
"""A python based module for the automatic generation of inputfiles for Monte-Carlo(MC) generators."""
Expand Down
2 changes: 2 additions & 0 deletions packages/k4geo/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class K4geo(CMakePackage):
"""DD4hep geometry models for future colliders."""
Expand Down
Loading

0 comments on commit f724979

Please sign in to comment.