Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Switch Python bindings to pybind11. #57

Merged
merged 6 commits into from
Jul 1, 2019
Merged

Switch Python bindings to pybind11. #57

merged 6 commits into from
Jul 1, 2019

Conversation

matz-e
Copy link
Member

@matz-e matz-e commented Jun 27, 2019

Drop MVD2 support from Python, and keep the interface more in line with
Python conventions.

Drop MVD2 support from Python, and keep the interface more in line with
Python conventions.
@matz-e matz-e requested a review from ferdonline June 27, 2019 09:51
@matz-e matz-e requested a review from tristan0x June 27, 2019 14:32
Copy link
Member

@tristan0x tristan0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice! Good job.

One little thing though: Python package version comes from Git whereas the C++ library use the hardcoded version in top CMakeLists.txt. I would rather unify this to prevent inconsistencies.

python setup.py --version command outputs the package version. Basalt project uses the output of this command to define the version in CMake (see chunk of code)
I suggest to do something similar here.

@matz-e matz-e requested review from tristan0x and ohm314 July 1, 2019 07:10
Copy link

@ohm314 ohm314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for some minor improvements in CMake I think this is very nice.

set(MVDTOOL_VERSION_MINOR 5)
set(MVDTOOL_VERSION_PATCH 2)
# get version from Python package
find_package(PythonInterp REQUIRED)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but isn't that for module dependencies? We're trying to get just the version out of setup.py, without requiring any python modules to be installed, really.

@matz-e matz-e merged commit ecddce5 into master Jul 1, 2019
@matz-e matz-e deleted the pybind11 branch July 1, 2019 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants