Skip to content
Snippets Groups Projects
Verified Commit 77e9c39c authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix exposion of the version

parent a24856ef
Branches
Tags
No related merge requests found
......@@ -4,6 +4,7 @@
*/
#include "eigenpy/eigenpy.hpp"
#include "eigenpy/version.hpp"
#include "eigenpy/geometry.hpp"
#include "eigenpy/solvers/solvers.hpp"
#include "eigenpy/solvers/preconditioners.hpp"
......@@ -16,6 +17,13 @@ using namespace eigenpy;
BOOST_PYTHON_MODULE(eigenpy)
{
enableEigenPy();
bp::scope().attr("__version__") = eigenpy::printVersion();
bp::scope().attr("__raw_version__") = bp::str(EIGENPY_VERSION);
bp::def("checkVersionAtLeast",&eigenpy::checkVersionAtLeast,
bp::args("major_version","minor_version","patch_version"),
"Checks if the current version of EigenPy is at least the version provided by the input arguments.");
exposeAngleAxis();
exposeQuaternion();
exposeGeometryConversion();
......
......@@ -4,7 +4,6 @@
*/
#include "eigenpy/eigenpy.hpp"
#include "eigenpy/version.hpp"
namespace eigenpy
{
......@@ -14,12 +13,6 @@ namespace eigenpy
{
using namespace Eigen;
bp::scope().attr("__version__") = eigenpy::printVersion();
bp::scope().attr("__raw_version__") = bp::str(EIGENPY_VERSION);
bp::def("checkVersionAtLeast",&eigenpy::checkVersionAtLeast,
bp::args("major_version","minor_version","patch_version"),
"Checks if the current version of EigenPy is at least the version provided by the input arguments.");
Exception::registerException();
bp::def("setNumpyType",&NumpyType::setNumpyType,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment