Menu

#705 Support boost_python lib name on Gentoo

closed-fixed
None
PyTango
3
2015-05-11
2015-02-25
No

On Gentoo Linux, the boost_library_name has to be set to (e.g.) boost_python-2.7.

This patch could automatically do that in setup.py:

--- setup.py.old        2015-02-25 16:32:49.203525946 +0100
+++ setup.py    2015-02-25 16:33:29.580146839 +0100
@@ -360,6 +360,8 @@
                 pyver = "-py"
                 pyver += "".join(map(str, platform.python_version_tuple()[:2]))
                 boost_library_name += pyver

+            elif 'gentoo' in dist_name:
+                boost_library_name += sys.version[:3]
     else:
         inc_dir = os.path.join(BOOST_ROOT, 'include')
         lib_dirs = [os.path.join(BOOST_ROOT, 'lib')]

Thanks!

Discussion

  • Georg Brandl

    Georg Brandl - 2015-02-28

    I'm sorry, the patch is incomplete; there should be another '-' before the sys.version[:3].

     
  • Tiago Coutinho

    Tiago Coutinho - 2015-05-11
    • status: open --> closed-fixed
    • assigned_to: Tiago Coutinho
     
  • Tiago Coutinho

    Tiago Coutinho - 2015-05-11

    Fixed. Will become visible in next PyTango release 8.1.7

    Thanks for reporting and for the patch

     

Log in to post a comment.

MongoDB Logo MongoDB