cpp_args = ['-Wall', '-pedantic']
cxx_args = ['-std=c++11'].extend(cpp_args)
module_eigen_python = Extension('eigen_python', define_macros=[(
    'MAJOR_VERSION', '0'), ('MINOR_VERSION', '1')], include_dirs=[
    '/usr/local/include'], sources=['eigen_python.cpp'], extra_compile_args
    =cpp_args)
setup(name='eigen_python', version='0.1', description='This is just a demo',
    author='Solkar', url='http://stackoverflow.com/questions' +
    '/15573557/call-c-using-eigen-library-function-in-python',
    long_description='just a toy', ext_modules=[module_eigen_python])
call C++ using Eigen Library function in python