File: py3_boost.patch

package info (click to toggle)
python-freecontact 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 296 kB
  • sloc: cpp: 291; python: 69; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (3)
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: