Skip to content

Commit

Permalink
Don't rely on ROOT JIT to define python build_version (#745)
Browse files Browse the repository at this point in the history
* Work around potential ROOT issue

* Make sure to use correct type

* Change import order to make pylint happy
  • Loading branch information
tmadlener authored Mar 7, 2025
1 parent 0fcd93f commit 896b27a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/podio/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Module that facilitates working with the podio::version::Version"""

from podio import __version__ # pylint: disable=wrong-import-order

import ROOT

# NOTE: It is necessary that this can be found on the ROOT_INCLUDE_PATH
Expand Down Expand Up @@ -37,5 +39,7 @@ def parse(*args):
return ver


# The version with which podio has been built. Same as __version__
build_version = podio.version.build_version
# The version with which podio has been built.
# Same as defined in C++ as static constexpr podio::version::build_version
# See: https://github.com/key4hep/key4hep-spack/issues/670
build_version = parse(__version__)

0 comments on commit 896b27a

Please sign in to comment.