from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
ext_modules = [Extension('test', ['test.pyx'], language='c++',
    extra_objects=['libtest.a'])]
setup(name='test', cmdclass={'build_ext': build_ext}, ext_modules=ext_modules)
Оберните библиотеку C++ с помощью Cython