File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 44 */
55
66#include " eigenpy/eigenpy.hpp"
7+ #include " eigenpy/version.hpp"
78#include " eigenpy/geometry.hpp"
89#include " eigenpy/solvers/solvers.hpp"
910#include " eigenpy/solvers/preconditioners.hpp"
@@ -16,6 +17,13 @@ using namespace eigenpy;
1617BOOST_PYTHON_MODULE (eigenpy)
1718{
1819 enableEigenPy ();
20+
21+ bp::scope ().attr (" __version__" ) = eigenpy::printVersion ();
22+ bp::scope ().attr (" __raw_version__" ) = bp::str (EIGENPY_VERSION);
23+ bp::def (" checkVersionAtLeast" ,&eigenpy::checkVersionAtLeast,
24+ bp::args (" major_version" ," minor_version" ," patch_version" ),
25+ " Checks if the current version of EigenPy is at least the version provided by the input arguments." );
26+
1927 exposeAngleAxis ();
2028 exposeQuaternion ();
2129 exposeGeometryConversion ();
Original file line number Diff line number Diff line change 44 */
55
66#include " eigenpy/eigenpy.hpp"
7- #include " eigenpy/version.hpp"
87
98namespace eigenpy
109{
@@ -14,12 +13,6 @@ namespace eigenpy
1413 {
1514 using namespace Eigen ;
1615
17- bp::scope ().attr (" __version__" ) = eigenpy::printVersion ();
18- bp::scope ().attr (" __raw_version__" ) = bp::str (EIGENPY_VERSION);
19- bp::def (" checkVersionAtLeast" ,&eigenpy::checkVersionAtLeast,
20- bp::args (" major_version" ," minor_version" ," patch_version" ),
21- " Checks if the current version of EigenPy is at least the version provided by the input arguments." );
22-
2316 Exception::registerException ();
2417
2518 bp::def (" setNumpyType" ,&NumpyType::setNumpyType,
You can’t perform that action at this time.
0 commit comments