1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: boost python libs are versioned. Simply using liboost_python does not work.
Added in a small function to return proper boost version as per interpreter
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2025-01-14
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,12 @@
#
from distutils.core import setup, Extension
from glob import glob
+import sys
+
+def get_boost_version():
+ return 'boost_python%s%s' \
+ % (sys.version_info.major, sys.version_info.minor)
+
setup( name = 'python-freecontact',
version = '1.1',
@@ -30,7 +36,7 @@
ext_modules = [Extension(
name = 'freecontact',
sources = glob('src/*.cpp'),
- libraries = ['freecontact', 'boost_python'])]
+ libraries = ['freecontact', get_boost_version()])]
)
# vim:et:ts=4:ai:
|