From 1ba93d411fa6697dad42a962d48f52d088988087 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Tue, 12 Nov 2019 13:53:24 +0100
Subject: [PATCH] [Python] __version__ contains clean version number

---
 python/version.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/python/version.cc b/python/version.cc
index 0f70a182..886493d1 100644
--- a/python/version.cc
+++ b/python/version.cc
@@ -4,6 +4,7 @@
 
 #include "hpp/fcl/config.hh"
 #include <boost/python.hpp>
+#include <boost/preprocessor/stringize.hpp>
 
 namespace bp = boost::python;
 
@@ -24,7 +25,9 @@ inline bool checkVersionAtMost(unsigned int major,
 void exposeVersion()
 {
   // Define release numbers of the current hpp-fcl version.
-  bp::scope().attr("__version__") = HPP_FCL_VERSION;
+  bp::scope().attr("__version__") = BOOST_PP_STRINGIZE(HPP_FCL_MAJOR_VERSION) "."
+    BOOST_PP_STRINGIZE(HPP_FCL_MINOR_VERSION) "."
+    BOOST_PP_STRINGIZE(HPP_FCL_PATCH_VERSION);
   bp::scope().attr("HPP_FCL_MAJOR_VERSION") = HPP_FCL_MAJOR_VERSION;
   bp::scope().attr("HPP_FCL_MINOR_VERSION") = HPP_FCL_MINOR_VERSION;
   bp::scope().attr("HPP_FCL_PATCH_VERSION") = HPP_FCL_PATCH_VERSION;
-- 
GitLab