1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Alex Mestiashvili <mestia@debian.org>
Description: properly link to libboost_python3X versions python3 module
--- python-freecontact.orig/setup.py
+++ python-freecontact/setup.py
@@ -17,6 +17,10 @@
#
from distutils.core import setup, Extension
from glob import glob
+import sys
+PY3K=(sys.version_info[0]==3)
+
+boost_py_bindings='boost_python3%d'%(sys.version_info[1]) if PY3K else 'boost_python'
setup( name = 'python-freecontact',
version = '1.1',
@@ -30,7 +34,7 @@
ext_modules = [Extension(
name = 'freecontact',
sources = glob('src/*.cpp'),
- libraries = ['freecontact', 'boost_python'])]
+ libraries = ['freecontact', boost_py_bindings])]
)
# vim:et:ts=4:ai:
|