Skip to content

Commit

Permalink
Add an extra podio_version.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Dec 1, 2023
1 parent 7a85b3a commit a8de1e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ else()
)
endif()

# Quality of life improvement to be able to use podio-dump --help
# without having to import ROOT
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/podio/__version__.py
DESTINATION ${podio_PYTHON_INSTALLDIR}
RENAME podio_version.py
)

install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/podio_gen
DESTINATION ${podio_PYTHON_INSTALLDIR}
REGEX test_.*\\.py$ EXCLUDE # Do not install test files
Expand Down
2 changes: 1 addition & 1 deletion tools/podio-dump
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import yaml

from tabulate import tabulate

from podio import __version__
from podio_version import __version__


def print_general_info(reader, filename):
Expand Down

0 comments on commit a8de1e1

Please sign in to comment.