Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
77e9c39c
Verified
Commit
77e9c39c
authored
Dec 06, 2019
by
Justin Carpentier
Browse files
python: fix exposion of the version
parent
a24856ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/main.cpp
View file @
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
();
...
...
src/eigenpy.cpp
View file @
77e9c39c
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment