Commit c2fb1121 authored by Andreas Gerstmayr's avatar Andreas Gerstmayr Committed by yonghong-song

python: add __version__ attribute to bcc module (#1826)

add __version__  attribute to bcc module
parent 66d28635
......@@ -12,6 +12,7 @@ if(NOT PYTHON_CMD)
endif()
configure_file(setup.py.in ${CMAKE_CURRENT_BINARY_DIR}/setup.py @ONLY)
configure_file(bcc/version.py.in ${CMAKE_CURRENT_BINARY_DIR}/bcc/version.py @ONLY)
if(EXISTS "/etc/debian_version")
set(PYTHON_FLAGS "${PYTHON_FLAGS} --install-layout deb")
endif()
......
......@@ -28,6 +28,7 @@ from .libbcc import lib, bcc_symbol, bcc_symbol_option, _SYM_CB_TYPE
from .table import Table, PerfEventArray
from .perf import Perf
from .utils import get_online_cpus, printb, _assert_is_bytes, ArgString
from .version import __version__
_probe_limit = 1000
_num_open_probes = 0
......
__version__ = '@REVISION@'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment