def run_setup(): """ Call distutils.setup(*targs, **kwargs) """ if ('setuptools' in sys.modules): from os.path import exists, join metadata['zip_safe'] = False if not exists(join('src', 'mpi4py.MPI.c')): metadata['install_requires'] = ['Cython>=' + CYTHON] # setup(packages=['mpi4py'], package_dir={'mpi4py': 'src'}, package_data={ 'mpi4py': [ 'include/mpi4py/*.h', 'include/mpi4py/*.pxd', 'include/mpi4py/*.pyx', 'include/mpi4py/*.pxi', 'include/mpi4py/*.i', 'MPI.pxd', 'mpi_c.pxd', ] }, ext_modules=[Ext(**ext) for ext in ext_modules()], libraries=[Lib(**lib) for lib in libraries()], executables=[Exe(**exe) for exe in executables()], **metadata)
def run_setup(): """ Call distutils.setup(*targs, **kwargs) """ setup(packages = ['mpi4py'], package_dir = {'mpi4py' : 'src'}, package_data = {'mpi4py' : ['include/mpi4py/*.h', 'include/mpi4py/*.pxd', 'include/mpi4py/*.pyx', 'include/mpi4py/*.pxi', 'include/mpi4py/*.i',]}, ext_modules = [ExtModule(ext) for ext in ext_modules()], executables = [ExeBinary(exe) for exe in executables()], **metadata)
def run_setup(): """ Call distutils.setup(*targs, **kwargs) """ setup(packages=['mpi4py'], package_dir={'mpi4py': 'src'}, package_data={ 'mpi4py': [ 'include/mpi4py/*.h', 'include/mpi4py/*.pxd', 'include/mpi4py/*.pyx', 'include/mpi4py/*.pxi', 'include/mpi4py/*.i', ] }, ext_modules=[ExtModule(ext) for ext in ext_modules()], executables=[ExeBinary(exe) for exe in executables()], **metadata)
def run_setup(): """ Call distutils.setup(*targs, **kwargs) """ if ('setuptools' in sys.modules): from os.path import exists, join metadata['zip_safe'] = False if not exists(join('src', 'mpi4py.MPI.c')): metadata['install_requires'] = ['Cython>='+CYTHON] # setup(packages = ['mpi4py'], package_dir = {'mpi4py' : 'src'}, package_data = {'mpi4py' : ['include/mpi4py/*.h', 'include/mpi4py/*.pxd', 'include/mpi4py/*.pyx', 'include/mpi4py/*.pxi', 'include/mpi4py/*.i',]}, ext_modules = [Ext(**ext) for ext in ext_modules()], libraries = [Lib(**lib) for lib in libraries() ], executables = [Exe(**exe) for exe in executables()], **metadata)
NAME = 'adios_mpi' DESCRIPTION = 'Python Module for Adios MPI' AUTHOR = 'Jong Choi' AUTHOR_EMAIL = '*****@*****.**' URL = 'http://www.olcf.ornl.gov/center-projects/adios/' import re module_file = open("src_mpi/__init__.py").read() metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file)) VERSION = metadata['version'] setup( name=NAME, version=VERSION, description=DESCRIPTION, author=AUTHOR, author_email=AUTHOR_EMAIL, url=URL, cmdclass={'test': adios_test}, executables=[], ext_modules=[m1], packages=['adios_mpi', 'adios_mpi._hl'], package_dir={ 'adios_mpi': 'src_mpi', 'adios_mpi._hl': '_hl' }, )
class adios_test(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import subprocess import sys errno = subprocess.call([sys.executable, "tests/test_adios_mpi.py", "tests/config_mpi.xml"]) raise SystemExit(errno) setup( name="adios_mpi", version="1.9.0", description="Python Module for Adios MPI", author="Jong Choi", author_email="*****@*****.**", url="http://www.olcf.ornl.gov/center-projects/adios/", cmdclass={"test": adios_test}, executables=[], ext_modules=[m1], )
p = subprocess.Popen(["adios_config", "-l"], stdout=subprocess.PIPE) for path in p.communicate()[0].strip().split(" "): if path.startswith('-L'): m1.library_dirs.append(path.replace('-L', '', 1)) if path.startswith('-l'): m1.libraries.append(path.replace('-l', '', 1)) class adios_test(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import subprocess import sys errno = subprocess.call([sys.executable, 'tests/test_adios_mpi.py', 'tests/config_mpi.xml']) raise SystemExit(errno) setup(name = 'adios_mpi', version = '1.8.1-pre-r1', description = 'Python Module for Adios MPI', author = 'Jong Choi', author_email = '*****@*****.**', url = 'http://www.olcf.ornl.gov/center-projects/adios/', cmdclass={'test': adios_test}, executables = [], ext_modules = [m1])
def run(self): import subprocess import sys errno = subprocess.call([sys.executable, 'tests/test_adios_mpi.py', 'tests/config_mpi.xml']) raise SystemExit(errno) NAME = 'adios_mpi' DESCRIPTION = 'Python Module for Adios MPI' AUTHOR = 'Jong Choi' AUTHOR_EMAIL = '*****@*****.**' URL = 'http://www.olcf.ornl.gov/center-projects/adios/' import re module_file = open("src/__init__.py").read() metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file)) VERSION = metadata['version'] setup(name = NAME, version = VERSION, description = DESCRIPTION, author = AUTHOR, author_email = AUTHOR_EMAIL, url = URL, cmdclass={'test': adios_test}, executables = [], ext_modules = [m1], packages=['adios_mpi', 'adios_mpi._hl'], package_dir = {'adios_mpi': 'src_mpi', 'adios_mpi._hl': '_hl'}, )
m1.libraries.append(path.replace('-l', '', 1)) class adios_test(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import subprocess import sys errno = subprocess.call([ sys.executable, 'tests/test_adios_mpi.py', 'tests/config_mpi.xml' ]) raise SystemExit(errno) setup(name='adios_mpi', version='1.0.8', description='Python Module for Adios MPI', author='Jong Choi', author_email='*****@*****.**', url='http://www.olcf.ornl.gov/center-projects/adios/', cmdclass={'test': adios_test}, executables=[], ext_modules=[m1])