Add accesible version numbers for C++ libcapnp

This commit is contained in:
Jason Paryani
2014-02-18 17:33:17 -08:00
parent c3e34969ad
commit 110b454e2c
3 changed files with 16 additions and 0 deletions

View File

@@ -25,6 +25,11 @@ def write_version_py(filename=None):
cnt = """\
version = '%s'
short_version = '%s'
from .lib.capnp import _CAPNP_VERSION_MAJOR as LIBCAPNP_VERSION_MAJOR
from .lib.capnp import _CAPNP_VERSION_MINOR as LIBCAPNP_VERSION_MINOR
from .lib.capnp import _CAPNP_VERSION_MICRO as LIBCAPNP_VERSION_MICRO
from .lib.capnp import _CAPNP_VERSION as LIBCAPNP_VERSION
"""
if not filename:
filename = os.path.join(