2013-05-23 16:51:55 +08:00
|
|
|
import numpy
|
|
|
|
|
|
2013-07-10 16:42:23 +08:00
|
|
|
|
2013-05-23 16:51:55 +08:00
|
|
|
def configuration(parent_package='', top_path=None):
|
|
|
|
|
from numpy.distutils.misc_util import Configuration
|
|
|
|
|
|
2013-07-23 21:49:41 +08:00
|
|
|
config = Configuration('sparsetools', parent_package, top_path)
|
2013-05-23 16:51:55 +08:00
|
|
|
|
2013-06-06 12:08:14 +08:00
|
|
|
config.add_extension('_traversal',
|
|
|
|
|
sources=['_traversal.c'],
|
|
|
|
|
include_dirs=[numpy.get_include()],
|
|
|
|
|
#libraries=libraries
|
|
|
|
|
)
|
2013-05-23 16:51:55 +08:00
|
|
|
config.add_extension('_graph_tools',
|
|
|
|
|
sources=['_graph_tools.c'],
|
|
|
|
|
include_dirs=[numpy.get_include()],
|
|
|
|
|
#libraries=libraries
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
return config
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
from numpy.distutils.core import setup
|
|
|
|
|
setup(**configuration(top_path='').todict())
|