Commit d7f657c8 authored by André Anjos's avatar André Anjos 💬
Browse files

Insert version for bob.core

parent 16096549
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#endif #endif
#include <bob.blitz/capi.h> #include <bob.blitz/capi.h>
#include <bob.blitz/cleanup.h> #include <bob.blitz/cleanup.h>
#include <bob.core/config.h>
static int dict_set(PyObject* d, const char* key, const char* value) { static int dict_set(PyObject* d, const char* key, const char* value) {
PyObject* v = Py_BuildValue("s", value); PyObject* v = Py_BuildValue("s", value);
...@@ -102,6 +103,13 @@ static PyObject* bob_blitz_version() { ...@@ -102,6 +103,13 @@ static PyObject* bob_blitz_version() {
return Py_BuildValue("{ss}", "api", BOOST_PP_STRINGIZE(BOB_BLITZ_API_VERSION)); return Py_BuildValue("{ss}", "api", BOOST_PP_STRINGIZE(BOB_BLITZ_API_VERSION));
} }
/**
* bob.core c/c++ api version
*/
static PyObject* bob_core_version() {
return Py_BuildValue("{ss}", "api", BOOST_PP_STRINGIZE(BOB_BLITZ_API_VERSION));
}
static PyObject* build_version_dictionary() { static PyObject* build_version_dictionary() {
PyObject* retval = PyDict_New(); PyObject* retval = PyDict_New();
...@@ -114,6 +122,7 @@ static PyObject* build_version_dictionary() { ...@@ -114,6 +122,7 @@ static PyObject* build_version_dictionary() {
if (!dict_steal(retval, "Python", python_version())) return 0; if (!dict_steal(retval, "Python", python_version())) return 0;
if (!dict_steal(retval, "NumPy", numpy_version())) return 0; if (!dict_steal(retval, "NumPy", numpy_version())) return 0;
if (!dict_steal(retval, "bob.blitz", bob_blitz_version())) return 0; if (!dict_steal(retval, "bob.blitz", bob_blitz_version())) return 0;
if (!dict_steal(retval, "bob.core", bob_core_version())) return 0;
if (!dict_steal(retval, "Bob", bob_version())) return 0; if (!dict_steal(retval, "Bob", bob_version())) return 0;
Py_INCREF(retval); Py_INCREF(retval);
......
...@@ -53,6 +53,7 @@ setup( ...@@ -53,6 +53,7 @@ setup(
], ],
packages = packages, packages = packages,
version = version, version = version,
include_dirs = include_dirs,
), ),
Extension("bob.measure._library", Extension("bob.measure._library",
[ [
......
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