Dear Lumin, On Wed, Jul 04, 2018 at 02:26:36AM +0000, Lumin wrote: > I'm not sure whether there is a better way to workaround this, > but the following solution works fine > > > - libraries = ['freecontact', 'boost_python'])] > + libraries = ['freecontact', > 'boost_python-py%d%d'%(sys.version_info[0], sys.version_info[1])])] > > > works for all python versions, i.e. 2.7, 3.6, 3.7 .
Works perfectly for building the modules. Unfortunately the test does not work for Python3. If I try inside pbuilder chroot: root:/build/python-freecontact-1.1# PYTHONPATH=.pybuild/cpython3_3.6_freecontact/build/ python3.6 test/test01.py Traceback (most recent call last): File "test/test01.py", line 87, in <module> test_main() File "test/test01.py", line 83, in test_main test_support.run_unittest(MyTestCase1 AttributeError: module 'test.test_support' has no attribute 'run_unittest' This also happens if I build without testing and after installing the python3-freecontact package: /python-freecontact(master) $ python3 test/test01.py Traceback (most recent call last): File "test/test01.py", line 87, in <module> test_main() File "test/test01.py", line 83, in test_main test_support.run_unittest(MyTestCase1 AttributeError: module 'test.test_support' has no attribute 'run_unittest' Any clue how to work around this? Kind regards Andreas. -- http://fam-tille.de