3
# Contact: choij@ornl.gov
5
from distutils.extension import Extension
8
# Use mpi4py dist utils: https://bitbucket.org/mpi4py/mpi4py
9
from mpidistutils import setup
10
#from distutils.core import setup
14
m1 = Extension('adios_mpi',
15
sources=['adios_mpi.cpp'],
17
include_dirs = [np.get_include()],
22
p = subprocess.Popen(["adios_config", "-c"], stdout=subprocess.PIPE)
23
pp = p.communicate()[0].strip()
24
for path in str(pp).split(" "):
25
if path.startswith('-I'):
26
m1.include_dirs.append(path.replace('-I', '', 1))
28
p = subprocess.Popen(["adios_config", "-l"], stdout=subprocess.PIPE)
29
pp = p.communicate()[0].strip()
30
for path in str(pp).split(" "):
31
if path.startswith('-L'):
32
m1.library_dirs.append(path.replace('-L', '', 1))
33
if path.startswith('-l'):
34
m1.libraries.append(path.replace('-l', '', 1))
36
setup(name = 'Adios_MPI',
38
description = 'Python Module for Adios MPI',
39
url = 'http://www.olcf.ornl.gov/center-projects/adios/',