[SCM] Packaging for pytango branch, master, updated. 4b58a0979c088c5513b2d502b6375f1f636beba7

Picca Frédéric-Emmanuel picca at synchrotron-soleil.fr
Tue Nov 23 22:04:02 UTC 2010


The following commit has been merged in the master branch:
commit ad5fd2f1d9d050e15a650644c1b2f50d4a046191
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Tue Nov 9 21:23:13 2010 +0100

    * patch for upstream

diff --git a/setup.py b/setup.py
index 7f22dd4..b844a48 100644
--- a/setup.py
+++ b/setup.py
@@ -211,7 +211,6 @@ else:
     include_dirs += [ os.path.join(BOOST_ROOT, 'include') ]
     
     libraries += [
-        'boost_python',
         'pthread',
         'rt',
         'dl',
@@ -221,6 +220,17 @@ else:
         'COS4',
     ]
 
+    # when building with multiple version of python on debian we need
+    # to link against boost_python-py25/-py26 etc...
+    import platform
+    if platform.dist()[0] in ['debian']:
+        if distutils.sysconfig.get_python_version() == '2.5':
+            libraries += ['boost_python-py25']
+        elif distutils.sysconfig.get_python_version() == '2.6':
+            libraries += ['boost_python-py26']
+    else:
+        libraries += ['boost_python']
+
     library_dirs += [ os.path.join(OMNI_ROOT, 'lib') ]
 
 

-- 
Packaging for pytango



More information about the debian-science-commits mailing list