From fecc462ed64ca1bae1f8de13d277a2ea678b12c2 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 24 Aug 2023 17:18:42 -0700 Subject: Fix: WarpX Version (#4218) * Fix: WarpX Version Fix the WarpX version info. * Fix Version: pyWarpX * Version: More Python __version__ --- Source/Python/pyWarpX.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Source/Python/pyWarpX.cpp') diff --git a/Source/Python/pyWarpX.cpp b/Source/Python/pyWarpX.cpp index 37d910f03..31c8e6ec6 100644 --- a/Source/Python/pyWarpX.cpp +++ b/Source/Python/pyWarpX.cpp @@ -1,4 +1,4 @@ -/* Copyright 2021-2022 The ImpactX Community +/* Copyright 2021-2023 The WarpX Community * * Authors: Axel Huebl * License: BSD-3-Clause-LBNL @@ -8,6 +8,7 @@ #include // todo: move this out to Python/WarpX.cpp #include // todo: move to its own Python/Utils.cpp +#include #include #define STRINGIFY(x) #x @@ -71,10 +72,11 @@ PYBIND11_MODULE(PYWARPX_MODULE_NAME, m) { // API runtime version // note PEP-440 syntax: x.y.zaN but x.y.z.devN -#ifdef PYIMPACTX_VERSION_INFO - m.attr("__version__") = MACRO_STRINGIFY(PYIMPACTX_VERSION_INFO); +#ifdef PYWARPX_VERSION_INFO + m.attr("__version__") = MACRO_STRINGIFY(PYWARPX_VERSION_INFO); #else - m.attr("__version__") = "dev"; + // note: not necessarily PEP-440 compliant + m.attr("__version__") = WarpX::Version(); #endif // authors -- cgit v1.2.3