Skip to content

Commit

Permalink
Merge pull request #1855 from jcarpent/topic/python
Browse files Browse the repository at this point in the history
Fix issue with Python 3.6
  • Loading branch information
jcarpent authored Feb 2, 2023
2 parents a928f6d + d2fa474 commit 787dcd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/python/spatial/force.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace pinocchio

static void expose()
{
#if BOOST_VERSION / 100 % 1000 < 71 && EIGENPY_VERSION_AT_LEAST(2,9,0)
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 6 && EIGENPY_VERSION_AT_LEAST(2,9,0)
typedef PINOCCHIO_SHARED_PTR_HOLDER_TYPE(Force) HolderType;
#else
typedef ::boost::python::detail::not_specified HolderType;
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/spatial/inertia.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ namespace pinocchio

static void expose()
{
#if BOOST_VERSION / 100 % 1000 < 71 && EIGENPY_VERSION_AT_LEAST(2,9,0)
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 6 && EIGENPY_VERSION_AT_LEAST(2,9,0)
typedef PINOCCHIO_SHARED_PTR_HOLDER_TYPE(Inertia) HolderType;
#else
typedef ::boost::python::detail::not_specified HolderType;
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/spatial/motion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace pinocchio

static void expose()
{
#if BOOST_VERSION / 100 % 1000 < 71 && EIGENPY_VERSION_AT_LEAST(2,9,0)
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 6 && EIGENPY_VERSION_AT_LEAST(2,9,0)
typedef PINOCCHIO_SHARED_PTR_HOLDER_TYPE(Motion) HolderType;
#else
typedef ::boost::python::detail::not_specified HolderType;
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/spatial/se3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace pinocchio

static void expose()
{
#if BOOST_VERSION / 100 % 1000 < 71 && EIGENPY_VERSION_AT_LEAST(2,9,0)
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 6 && EIGENPY_VERSION_AT_LEAST(2,9,0)
typedef PINOCCHIO_SHARED_PTR_HOLDER_TYPE(SE3) HolderType;
#else
typedef ::boost::python::detail::not_specified HolderType;
Expand Down

0 comments on commit 787dcd5

Please sign in to comment.