Skip to content

Commit 67c0815

Browse files
committed
Added __version__ attribute to pybgs
1 parent 5f77663 commit 67c0815

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def build_cmake(self, extension):
208208

209209
setup(
210210
name='pybgs',
211-
version='3.2.0.post0',
211+
version='3.2.0.post1',
212212
author='Andrews Sobral',
213213
author_email='[email protected]',
214214
url='https://github.com/andrewssobral/bgslibrary',

wrapper/python/bgslibrary_module.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ PYBIND11_MODULE(pybgs, m)
3535
{
3636
NDArrayConverter::init_numpy();
3737
m.doc() = "python wrapper for bgslibrary using pybind11";
38+
py::object version = py::cast("3.2.0");
39+
m.attr("__version__") = version;
3840

3941
// Basic test
4042
m.def("read_image", &read_image, "A function that read an image", py::arg("image"));

0 commit comments

Comments
 (0)