Skip to content

Commit 1cc01b0

Browse files
committed
Python: openPMD-api release channel
Expose as module attribute.
1 parent e5d87d9 commit 1cc01b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/binding/python/openPMD.cpp

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

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

0 commit comments

Comments
 (0)