Esempio n. 1
0
 description='JWST',
 url='http://ssb.stsci.edu',
 license='BSD',
 classifiers=[
     'License :: OSI Approved :: BSD License',
     'Operating System :: OS Independent',
     'Programming Language :: Python',
     'Topic :: Software Development :: Libraries :: Python Modules',
 ],
 scripts=SCRIPTS,
 packages=find_packages(),
 package_data=PACKAGE_DATA,
 ext_modules=[
     Extension('jwst.tweakreg.chelp',
         glob('src/tweakreg/*.c'),
         include_dirs=[np_include()],
         define_macros=[('NUMPY', '1')]),
 ],
 install_requires=[
     'namedlist'
 ],
 tests_require=[
     'backports.tempfile',
     'pytest',
     'requests_mock',
     'pytest-catchlog'
 ],
 cmdclass={
     'test': PyTest,
     'build_sphinx': BuildSphinx
 },
Esempio n. 2
0
from distutils.core import setup, Extension
from numpy import get_include as np_include
import os

src_dir='src/'
src_files=['pardiso_swig.i']
mkl_root=os.environ.get("MKLROOT")
mkl_lib=mkl_root+"/lib/em64t"

src_files=[src_dir+object for object in src_files]

setup(name='PyMKLPardiso',
      version='0.1',
      description='A Python Interface to the MKL Version of Pardiso',
      author='Timo Betcke',
      author_email='*****@*****.**',
      packages=['pymklpardiso'],
      ext_package='pymklpardiso',
      ext_modules=[Extension('_core',
                src_files,
                swig_opts=['-outdir','pymklpardiso'],
                include_dirs=['src/',np_include()],
                library_dirs=[mkl_lib],
                libraries=['mkl_solver_lp64','mkl_intel_lp64','mkl_intel_thread','mkl_core','mkl_mc3','mkl_mc','iomp5','pthread'],
                runtime_library_dirs=[mkl_lib],
                extra_compile_args=['-arch','x86_64'],
                extra_link_args=['-arch','x86_64']
                )]
     )
Esempio n. 3
0
src_dir = 'src/'
src_files = ['pardiso_swig.i']
mkl_root = os.environ.get("MKLROOT")
mkl_lib = mkl_root + "/lib/em64t"

src_files = [src_dir + object for object in src_files]

setup(name='PyMKLPardiso',
      version='0.1',
      description='A Python Interface to the MKL Version of Pardiso',
      author='Timo Betcke',
      author_email='*****@*****.**',
      packages=['pymklpardiso'],
      ext_package='pymklpardiso',
      ext_modules=[
          Extension('_core',
                    src_files,
                    swig_opts=['-outdir', 'pymklpardiso'],
                    include_dirs=['src/', np_include()],
                    library_dirs=[mkl_lib],
                    libraries=[
                        'mkl_solver_lp64', 'mkl_intel_lp64',
                        'mkl_intel_thread', 'mkl_core', 'mkl_mc3', 'mkl_mc',
                        'iomp5', 'pthread'
                    ],
                    runtime_library_dirs=[mkl_lib],
                    extra_compile_args=['-arch', 'x86_64'],
                    extra_link_args=['-arch', 'x86_64'])
      ])
Esempio n. 4
0
setup(
    name=NAME,
    version=version.pep386,
    author='OED/SSB, etc',
    author_email='*****@*****.**',
    description='JWST',
    url='http://ssb.stsci.edu',
    license='BSD',
    classifiers = [
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    scripts=SCRIPTS,
    packages=find_packages(),
    package_data=PACKAGE_DATA,
    ext_modules=[
        Extension('jwst.tweakreg.chelp',
            glob('src/tweakreg/*.c'),
            include_dirs=[np_include()],
            define_macros=[('NUMPY','1')]),
    ],
    tests_require=[
        'pytest'
    ],
    cmdclass={
        'test': PyTest
    },
)
Esempio n. 5
0
           'graph.c','initpart.c','kmetis.c','kvmetis.c',
           'kwayfm.c','kwayrefine.c','kwayvolfm.c','kwayvolrefine.c',
           'match.c','mbalance.c','mbalance2.c','mcoarsen.c','memory.c',
           'mesh.c','meshpart.c','mfm.c','mfm2.c','mincover.c','minitpart.c',
           'minitpart2.c','mkmetis.c','mkwayfmh.c','mkwayrefine.c',
           'mmatch.c','mmd.c','mpmetis.c','mrefine.c','mrefine2.c',
           'mutil.c','myqsort.c','ometis.c','parmetis.c','pmetis.c',
           'pqueue.c','refine.c','separator.c','sfm.c','srefine.c',
           'stat.c','subdomains.c','timing.c','util.c']


src_files=[src_dir+object for object in src_files]

mesh_files=[src_dir+'mesh_swig.i']+src_files
graph_files=[src_dir+'graph_swig.i']+src_files



mesh_extension=Extension('_mesh',mesh_files,swig_opts=['-outdir','pymeshpart'],include_dirs=['src/',np_include()])
graph_extension=Extension('_graph',graph_files,swig_opts=['-outdir','pymeshpart'],include_dirs=['src/',np_include()])


setup(name='PyMeshPart',
      version='0.1',
      description='Mesh Partitioner for Python based on Metis',
      author='Timo Betcke',
      author_email='*****@*****.**',
      packages=['pymeshpart'],
      ext_package='pymeshpart',
      ext_modules=[mesh_extension,graph_extension])