Skip to content

Commit

Permalink
Updates top level meson.build to get version from Hatchet's Python code
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed May 28, 2024
1 parent 407ef1a commit a038611
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions hatchet/util/print_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Copyright 2017-2023 Lawrence Livermore National Security, LLC and other
# Hatchet Project Developers. See the top-level LICENSE file for details.
#
Expand Down
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Setup the Meson Project
project('llnl-hatchet', 'cython',
version: '2024.1.1'
version: run_command(
['hatchet/utils/print_version.py'],
check=true
).stdout().strip()
)

# Get the Meson Python object, a dependency object to Python for extension modules,
# and the path to the top-level install directory
py = import('python').find_installation('python3', required: true, pure: false)
py = import('python').find_installation(pure: false)
py_dep = py.dependency()
py_top_install_dir = py.get_install_dir()

Expand Down

0 comments on commit a038611

Please sign in to comment.