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
b9b71d29
Unverified
Commit
b9b71d29
authored
Dec 06, 2019
by
Justin Carpentier
Committed by
GitHub
Dec 06, 2019
Browse files
Merge pull request #133 from jcarpent/topic/devel
python: fix exposion of the version
parents
a24856ef
77e9c39c
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/main.cpp
View file @
b9b71d29
...
...
@@ -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 @
b9b71d29
...
...
@@ -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