Skip to content

Commit 8467aac

Browse files
committed
Python: openPMD-api release channel
Expose as module attribute.
1 parent b277109 commit 8467aac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/binding/python/openPMD.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ PYBIND11_MODULE(openPMD, m) {
8383
openPMDapi << "-" << OPENPMDAPI_VERSION_LABEL;
8484
m.attr("__version__") = openPMDapi.str();
8585

86+
// release channel
87+
std::stringstream openPMD_release_channel;
88+
if( std::string( OPENPMDAPI_RELEASE_CHANNEL ).size() > 0 )
89+
openPMD_release_channel << OPENPMDAPI_RELEASE_CHANNEL;
90+
m.attr("release_channel") = openPMD_release_channel.str();
91+
8692
// feature variants
8793
m.attr("variants") = std::map<std::string, bool>{
8894
{"mpi", bool(openPMD_HAVE_MPI)},

0 commit comments

Comments
 (0)