mirror of
https://github.com/triqs/dft_tools
synced 2024-12-28 07:13:41 +01:00
9ee9083249
In order to use c++2py tools the C-code must be rewritten to C++. In particular, instead of direct creation of Numpy arrays STL containers must be used.
10 lines
212 B
Python
10 lines
212 B
Python
|
|
from distutils.core import setup, Extension
|
|
import numpy
|
|
|
|
c_locproj_io_mod = Extension('c_locproj_io', sources=['c_locproj_io.c'],
|
|
include_dirs=[numpy.get_include()])
|
|
|
|
setup(ext_modules=[c_locproj_io_mod])
|
|
|