Unverified Commit b9b71d29 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #133 from jcarpent/topic/devel

python: fix exposion of the version
parents a24856ef 77e9c39c
......@@ -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,
......
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