Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:26

0001 from spack.package import *
0002 from spack.pkg.builtin.acts import Acts as BuiltinActs
0003 
0004 
0005 class Acts(BuiltinActs):
0006     def __init__(self, spec):
0007         super(Acts, self).__init__(spec)
0008         # HACK Remove upstream limitations on podio@:0
0009         for _spec in ["@:35+edm4hep", "@:35+podio"]:
0010             if spack.spec.Spec(_spec) in Acts.dependencies:
0011                 del Acts.dependencies[spack.spec.Spec(_spec)]
0012 
0013     # Plugins/Podio/edm.yml: add schema_version
0014     patch(
0015         "https://github.com/acts-project/acts/commit/8fce1a7b32aa39f967919adc4cabebbfde2a7a97.patch?full_index=1",
0016         sha256="78d4fac4235f7659c674a267f11e2d5bcad82af0d9df2036ef620d64997497d0",
0017         when="@30.3.0:34.0",
0018     )
0019 
0020     # CMakeLists.txt: fix ACTS_USE_SYSTEM_ACTSVG typo
0021     patch(
0022         "https://github.com/acts-project/acts/commit/3255dfc3dddf9c7a82aaddb041d4a6f095d19124.patch?full_index=1",
0023         sha256="60317f6a09a7d57721c1234fcf087ae85aeab27653976d1d3ac7a846c3b85a89",
0024         when="@20.1.0:26",
0025     )
0026 
0027     @when("@33:35")
0028     def patch(self):
0029         # HACK Remove upstream limitations on podio@:0
0030         filter_file("_acts_podio_version 0.16", "_acts_podio_version 1.0", "CMakeLists.txt")
0031 
0032     def cmake_args(self):
0033         args = super().cmake_args()
0034         args.append(self.define("Python_EXECUTABLE", self.spec["python"].command.path))
0035         return args
0036 
0037 
0038 # instantiate at least once
0039 _acts = Acts(spack.spec.Spec("acts"))