Add __version__ to dlib module

Only issue is that the strong is hardcoded - otherwise
this is actually technically required by PEP 396
This commit is contained in:
Patrick Snape 2016-02-03 10:59:04 +00:00
parent d7cac78757
commit 86e93291a0
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ BOOST_PYTHON_MODULE(dlib)
// since it is full of huge amounts of template clutter.
boost::python::docstring_options options(true,true,false);
boost::python::scope().attr("__version__") = "18.18";
bind_matrix();
bind_vector();
bind_svm_c_trainer();