diff options
author | 2023-08-24 17:18:42 -0700 | |
---|---|---|
committer | 2023-08-24 17:18:42 -0700 | |
commit | fecc462ed64ca1bae1f8de13d277a2ea678b12c2 (patch) | |
tree | b75909f473759949faa6feb4787e892ce15ca432 /Source/Python/pyWarpX.cpp | |
parent | 201099c6f784a4ea04ef752c73e2ad7e8daf684e (diff) | |
download | WarpX-fecc462ed64ca1bae1f8de13d277a2ea678b12c2.tar.gz WarpX-fecc462ed64ca1bae1f8de13d277a2ea678b12c2.tar.zst WarpX-fecc462ed64ca1bae1f8de13d277a2ea678b12c2.zip |
Fix: WarpX Version (#4218)
* Fix: WarpX Version
Fix the WarpX version info.
* Fix Version: pyWarpX
* Version: More Python __version__
Diffstat (limited to '')
-rw-r--r-- | Source/Python/pyWarpX.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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 <WarpX.H> // todo: move this out to Python/WarpX.cpp #include <Utils/WarpXUtil.H> // todo: move to its own Python/Utils.cpp +#include <Utils/WarpXVersion.H> #include <Initialization/WarpXAMReXInit.H> #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 |