aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Python/pyWarpX.cpp10
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