From d2fa474dc6590959b4a1ba1a8c695aac8da6040a Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Wed, 1 Feb 2023 16:40:39 +0100 Subject: [PATCH] python: fix issue with Python 3.6 --- bindings/python/spatial/force.hpp | 2 +- bindings/python/spatial/inertia.hpp | 2 +- bindings/python/spatial/motion.hpp | 2 +- bindings/python/spatial/se3.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/spatial/force.hpp b/bindings/python/spatial/force.hpp index 0fb723afa7..91459b653a 100644 --- a/bindings/python/spatial/force.hpp +++ b/bindings/python/spatial/force.hpp @@ -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; diff --git a/bindings/python/spatial/inertia.hpp b/bindings/python/spatial/inertia.hpp index c6f276e927..3141572c56 100644 --- a/bindings/python/spatial/inertia.hpp +++ b/bindings/python/spatial/inertia.hpp @@ -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; diff --git a/bindings/python/spatial/motion.hpp b/bindings/python/spatial/motion.hpp index 8ed708d2a8..59c2427608 100644 --- a/bindings/python/spatial/motion.hpp +++ b/bindings/python/spatial/motion.hpp @@ -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; diff --git a/bindings/python/spatial/se3.hpp b/bindings/python/spatial/se3.hpp index 547f17757b..13404661c4 100644 --- a/bindings/python/spatial/se3.hpp +++ b/bindings/python/spatial/se3.hpp @@ -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;