Beispiel #1
0
def setup_pepytools():

    setup(
          name="pepytools",

          # metadata
          version=__version__,
          author=__author__,
          author_email=__email__,
          license = __license__,
          platforms = 'Any',
          description = __description__,
          long_description = readme(),
          keywords = 'polarizable embedding potential',
          url = __url__,

          # set up package contents
          package_dir={'pepytools': 'src'},
          packages=['pepytools'],
          scripts=['bin/pepy_add', 'bin/pepy_to_csv'],
          ext_package = 'pepytools',
          ext_modules = [ext_field,
                         ext_intersect,
                         ext_qmfields
                        ],
)
Beispiel #2
0
def setup_package():
    write_version_py()
    setup(
        configuration=configuration,
        name=NAME,
        version=VERSION,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=CLASSIFIERS,
        packages=["Orange",
                  "Orange.classification",
                  "Orange.data",
                  "Orange.feature",
                  "Orange.misc",
                  "Orange.testing",
                  "Orange.tests"],
        install_requires=INSTALL_REQUIRES,
        **extra_setuptools_args
    )
Beispiel #3
0
def setup_package():

    from numpy.distutils.core import setup

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)

    # Rewrite the version file everytime
    if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
    write_version_py()

    try:
        setup(
            name=NAME,
            maintainer=MAINTAINER,
            maintainer_email=MAINTAINER_EMAIL,
            description=DESCRIPTION,
            long_description=LONG_DESCRIPTION,
            url=URL,
            download_url=DOWNLOAD_URL,
            license=LICENSE,
            classifiers=CLASSIFIERS,
            author=AUTHOR,
            author_email=AUTHOR_EMAIL,
            platforms=PLATFORMS,
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return
Beispiel #4
0
def setup_package():

    from numpy.distutils.core import setup
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'scipy')) # to retrive version

    # Rewrite the version file everytime
    if os.path.exists('scipy/version.py'):
        os.remove('scipy/version.py')

    write_version_py()

    try:
        setup(
            name = 'scipy',
            maintainer = "SciPy Developers",
            maintainer_email = "[email protected]",
            description = DOCLINES[0],
            long_description = "\n".join(DOCLINES[2:]),
            url = "http://www.scipy.org",
            download_url = "http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531",
            license = 'BSD',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #5
0
def build():
    from numpy.distutils.core import setup, Extension
    cwd = os.getcwd()
    os.chdir(os.path.dirname(__file__))
    ext = [Extension('rspectra', ['rspectra.f90'])]
    setup(ext_modules=ext, script_args=['build_ext', '--inplace'])
    os.chdir(cwd)
Beispiel #6
0
def setup_package():

    from numpy.distutils.core import setup

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)

    # Rewrite the version file everytime
    if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
    write_version_py()

    try:
        setup(
            name = 'numpy',
            maintainer = "NumPy Developers",
            maintainer_email = "[email protected]",
            description = DOCLINES[0],
            long_description = "\n".join(DOCLINES[2:]),
            url = "http://numeric.scipy.org",
            download_url = "http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103",
            license = 'BSD',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            author = "Travis E. Oliphant, et.al.",
            author_email = "[email protected]",
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return
Beispiel #7
0
def setup_package():

    # rewrite version file
    write_version_py()

    try:
        from numpy.distutils.core import setup
    except:
        from distutils.core import setup

    setup(
        name=NAME,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        url=URL,
        version=VERSION,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        platforms=PLATFORMS,
        configuration=configuration,
        scripts=SCRIPTS,
    )
Beispiel #8
0
def setup_package():
    if 'setuptools' in sys.modules:
        setup_args['install_requires'] = ['numpy']
    setup(  packages = packages \
          , package_dir=package_dir \
          , ext_modules=ext_modules \
          , **setup_args)
Beispiel #9
0
def setup_package():

    from numpy.distutils.core import setup
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'scipy')) # to retrive version

    try:
        setup(
            name = 'scipy',
            maintainer = "SciPy Developers",
            maintainer_email = "[email protected]",
            description = "Scientific Algorithms Library for Python",
            url = "http://www.scipy.org",
            license = 'BSD',
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #10
0
def setupPackage():
    # setup package
    setup(
        name='obspy',
        version=get_git_version(),
        description=DOCSTRING[1],
        long_description="\n".join(DOCSTRING[3:]),
        url="http://www.obspy.org",
        author='The ObsPy Development Team',
        author_email='[email protected]',
        license='GNU Lesser General Public License, Version 3 (LGPLv3)',
        platforms='OS Independent',
        classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Console',
            'Intended Audience :: Science/Research',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: GNU Library or ' +
                'Lesser General Public License (LGPL)',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering',
            'Topic :: Scientific/Engineering :: Physics'],
        keywords=KEYWORDS,
        packages=find_packages(),
        namespace_packages=[],
        zip_safe=False,
        install_requires=INSTALL_REQUIRES,
        download_url=("https://github.com/obspy/obspy/zipball/master"
            "#egg=obspy=dev"),  # this is needed for "easy_install obspy==dev"
        include_package_data=True,
        entry_points=ENTRY_POINTS,
        ext_package='obspy.lib',
        configuration=configuration)
Beispiel #11
0
def setup_package():
    from numpy.distutils.core import setup
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'pydec')) # to retrive version

    try:
        setup(
            name = 'pydec',
            maintainer = "PyDEC Developers",
            maintainer_email = "[email protected]",
            description = DOCLINES[0],
            long_description = "\n".join(DOCLINES[2:]),
            url = "http://www.graphics.cs.uiuc.edu/~wnbell/",
            download_url = "http://code.google.com/p/pydec/downloads/list",
            license = 'BSD',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #12
0
def setup_package():

    from numpy.distutils.core import setup, Extension
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'pysparse')) # to retrieve version

    try:
        setup(
            name = 'pysparse',
            author = "Roman Geus, Dominique Orban, Daniel Wheeler",
            author_email = "{hamsel,d-orban,wd15}@sf.net,",
            maintainer = "PySparse Developers",
            maintainer_email = "{hamsel,d-orban,wd15}@sf.net,",
            summary = "Fast sparse matrix library for Python",
            description = "Fast sparse matrix library for Python",
            long_description = "\n".join(DOCLINES[2:]),
            url = "pysparse.sf.net",
            download_url = "sf.net/projects/pysparse",
            license = 'BSD-style',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            install_requires=['numpy>=1.2'],
            configuration=configuration,
            )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #13
0
def setup_package():

    setup(
          install_requires=['numpy > 1.2.5',
                            'scipy >= 0.7',
                            'scikits.timeseries >= 0.91'],
          namespace_packages=['scikits'],
          packages=setuptools.find_packages(),
          test_suite = 'nose.collector',
          name = distname,
          version = version,
          description = "Environmental time series manipulation",
          long_description = long_description,
          license = "BSD",
          author = "Pierre GF GERARD-MARCHANT",
          author_email = "pierregmcode_AT_gmail_DOT_com",
          maintainer = "Pierre GF GERARD-MARCHANT",
          maintainer_email = "pierregmcode_AT_gmail_DOT_com",
          url = "http://hydroclimpy.sourceforge.net",
          classifiers = classifiers,
          platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
          configuration = configuration,
    )

    return
Beispiel #14
0
def setup_package():
    from numpy.distutils.core import setup

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    src_path = local_path

    os.chdir(local_path)
    sys.path.insert(0, local_path)
    sys.path.insert(0, os.path.join(local_path, 'propack'))  # to retrieve version

    # Run build
    old_path = os.getcwd()
    os.chdir(src_path)
    sys.path.insert(0, src_path)

    try:
        setup(
            name = 'pypropack',
            maintainer = "Jake Vanderplas",
            maintainer_email = "[email protected]",
            description = "PROPACK python wrappers",
            long_description = "PROPACK python wrappers",
            license = 'BSD',
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #15
0
def main():
  setup(name             = 'glu',
        version          = get_version(),
        author           = 'Kevin Jacobs',
        author_email     = '[email protected]',
        maintainer       = 'Kevin Jacobs',
        maintainer_email = '[email protected]',
        platforms        = ['any'],
        description      = 'Genotype Library and Utilities (GLU)',
        long_description = ('Genotype Library and Utilities (GLU): Tools for the management of large '
                            'amounts of SNP genotype data and programs to check its quality and to '
                            'test for association between SNP markers with continuous or discrete '
                            'trait phenotypes.'),
        classifiers      = filter(None, classifiers.split('\n')),
        install_requires = requires,
        packages         = find_packages(),
        include_package_data = True,
        scripts          = ['bin/glu'],
        zip_safe         = False,
        test_suite       = 'nose.collector',
        ext_modules = [
                        Extension('glu.lib.genolib.bitarrayc',      sources = ['glu/lib/genolib/bitarrayc.c']),
                        Extension('glu.lib.genolib._genoarray',     sources = ['glu/lib/genolib/_genoarray.c',
                                                                               'glu/lib/genolib/bitarrayc.c',
                                                                               'glu/lib/genolib/_ibs.c',
                                                                               'glu/lib/genolib/_ld.c'],
                                                               include_dirs = [np.get_include()]),
                        Extension('glu.modules.struct._admix',      sources = ['glu/modules/struct/_admix.c'],
                                                               include_dirs = [np.get_include()]),
                        Extension('glu.modules.ld.pqueue',          sources = ['glu/modules/ld/pqueue.c']),
                        glmnet_config(),
                      ] + cython_modules(),
        entry_points={ 'console_scripts'    : ['glu = glu.lib.glu_launcher:main'],
                     } )
Beispiel #16
0
def setup_package():

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    src_path = local_path

    os.chdir(local_path)
    sys.path.insert(0, local_path)
    sys.path.insert(0, package_path)  # to retrieve version

    # Run build
    old_path = os.getcwd()
    os.chdir(src_path)
    sys.path.insert(0, src_path)

    # Run build
    from numpy.distutils.core import setup

    try:
        setup(
                name = 'swe',
                requires =['numpy','clawpack'],
                package_dir = {'':'src'},
                configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return
Beispiel #17
0
def setup_package():

    from numpy.distutils.core import setup
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'pykrylov')) # to retrieve version

    try:
        setup(
            name = 'pykrylov',
            maintainer = "PyKrylov Developers",
            maintainer_email = "[email protected]",
            description = DOCLINES[0],
            long_description = "\n".join(DOCLINES[2:]),
            url = "http://github.com/dpo/pykrylov/tree/master",
            download_url = "http://github.com/dpo/pykrylov/tree/master",
            license = 'LGPL',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            configuration=configuration )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #18
0
def main(**extra_args):
    from numpy.distutils.core import setup

    setup(
        name="nipype",
        description="Neuroimaging in Python: Pipelines and Interfaces",
        author="Various",
        author_email="[email protected]",
        url="http://nipy.sourceforge.net/nipype",
        long_description=desc,
        configuration=configuration,
        cmdclass=cmdclass,
        requires=[
            "numpy (>=1.1)",
            "scipy (>=0.7)",
            "networkx (>=1.0)",
            "ipython (>=0.10)",
            "enthought.traits (>=3.2.0)",
            "nibabel (>=1.0.0)",
            "json",
            "twisted",
            "zope.interface",
        ],
        **extra_args
    )
Beispiel #19
0
def main(**extra_args):
    from numpy.distutils.core import setup    
    from glob import glob
    
    # monkey-patch numpy distutils to use Cython instead of Pyrex
    from numpy.distutils.command.build_ext import build_ext
    from numpy.distutils.command.build_src import build_src
    from build_helpers import generate_a_pyrex_source
    build_src.generate_a_pyrex_source = generate_a_pyrex_source
    cmdclass = {
        'build_src': build_src, 
        'build_ext': build_ext
    }
    
    setup(name=INFO_VARS['NAME'],
          maintainer=INFO_VARS['MAINTAINER'],
          maintainer_email=INFO_VARS['MAINTAINER_EMAIL'],
          description=INFO_VARS['DESCRIPTION'],
          long_description=INFO_VARS['LONG_DESCRIPTION'],
          url=INFO_VARS['URL'],
          download_url=INFO_VARS['DOWNLOAD_URL'],
          license=INFO_VARS['LICENSE'],
          classifiers=INFO_VARS['CLASSIFIERS'],
          author=INFO_VARS['AUTHOR'],
          author_email=INFO_VARS['AUTHOR_EMAIL'],
          platforms=INFO_VARS['PLATFORMS'],
          version=INFO_VARS['VERSION'],
          requires=INFO_VARS['REQUIRES'],
          configuration = configuration,
          cmdclass = cmdclass,
          scripts = glob('scripts/*'), 
          #script_args = ['build_ext', '--inplace'], 
          **extra_args)
Beispiel #20
0
def setup_package():
	try:
		import numpy
	except:
		raise ImportError("build requires numpy for fortran extensions")


	io = open("meta.yaml","r")
	meta_file = io.read()
	io.close()

	meta_file = meta_file.split()

	ind = meta_file.index("version:")
	version = meta_file[ind+1].replace('"','')
	io

	metadata = dict(
		name='exact_diag_py',
		version=version,
		maintainer="Phillip Weinberg, Marin Bukov",
		maintainer_email="[email protected],mbukov.bu.edu",
		download_url="https://github.com/weinbe58/exact_diag_py",
		license='MET',
		platforms=["Unix"]
	)

	from numpy.distutils.core import setup
	metadata['configuration'] = configuration

	setup(**metadata)
Beispiel #21
0
def main(**extra_args):
    from numpy.distutils.core import setup
    
    install_requires=['numpy >=1.1',
              'scipy >=0.7',
              'matplotlib >=1.0.0',
              'networkx >=1.0',
              'nibabel >=1.0.0',
              'traits >=4.0.0',]
    
    try:
        import json
    except ImportError:
        install_requires.append('simplejson')
    
    setup( name = 'nipype',
           description = 'Neuroimaging in Python: Pipelines and Interfaces',
           author = 'Various',
           author_email = '[email protected]',
           url = 'http://nipy.org/nipype',
           long_description = desc,
           configuration = configuration,
           cmdclass = cmdclass,
           install_requires=install_requires,
           **extra_args)
Beispiel #22
0
def setupClimt():

    # Build all extensions
    for ext in Extensions: build_ext(**ext)

    # Finish the setup
    # note: setup() cannot copy directories, and falls over
    # trying to copy the CVS directory in climt/lib/data
    # workaround: make data list which specifically excludes CVS
    os.chdir('lib/climt')
    DataFiles = []
    for File in glob.glob('data/*/*'):
        if 'CVS' not in File:
            DataFiles.append(File)
    print DataFiles
    os.chdir('../..')

    setup(name = "CliMT",
          version = open('Version').read()[:-1],
          description = "Climate modelling and diagnostics toolkit",
          author = "Rodrigo Caballero",
          author_email = "[email protected]",
          url = "http://people.su.se/~rcaba/climt",
          packages = ['climt'],
          package_dir = {'':'lib'},
          package_data = {'climt':['*.so']+DataFiles})
Beispiel #23
0
def main(**extra_args):
    from numpy.distutils.core import setup
    setup(
        name = 'Connectome Viewer',
        version = INFO_VARS['version'],
        author = "Stephan Gerhard",
        author_email = "[email protected]",
        classifiers = [c.strip() for c in """\
            Development Status :: 5 - Production/Stable
            Intended Audience :: Developers
            Intended Audience :: Science/Research
            Operating System :: OS Independent
            Operating System :: POSIX
            Operating System :: POSIX :: Linux 
            Operating System :: Unix
            Programming Language :: Python
            Topic :: Scientific/Engineering
            Topic :: Software Development
            """.splitlines() if len(c.split()) > 0],    
        description = "Multi-Modal MR Connectomics Framework for Analysis and Visualization",
        license = "Modified BSD License",
        long_description = INFO_VARS['long_description'],
        maintainer = 'Stephan Gerhard',
        maintainer_email = '[email protected]',
        platforms = ["Linux", "Unix"],
        url = 'http://www.connectomeviewer.org/',
        scripts = glob('scripts/*'),
        configuration = configuration,
        **extra_args
        )
Beispiel #24
0
def setup_package():

    from numpy.distutils.core import setup, Extension
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0,local_path)
    sys.path.insert(0,os.path.join(local_path,'pysparse')) # to retrieve version

    try:
        setup(
            name = 'csc-pysparse',
            author = "Roman Geus, Dominique Orban, Daniel Wheeler",
            author_email = "{hamsel,d-orban,wd15}@sf.net,",
            maintainer = "Rob Speer",
            maintainer_email = "[email protected]",
            description = DOCLINES[0],
            long_description = "\n".join(DOCLINES[2:]),
            url = "http://github.com/rspeer/csc-pysparse",
            #download_url = "sf.net/projects/pysparse",
            license = 'BSD-style',
            classifiers=filter(None, CLASSIFIERS.split('\n')),
            platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
            configuration=configuration,
            )
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #25
0
def setup_package():
    setup(name='nls',
         version=VERSION,
         description = DOCLINES[0],
         long_description = '\n'.join(DOCLINES[2:]),
         url='https://github.com/daskol/nls',
         download_url='https://github.com/daskol/nls/tarball/v' + VERSION,
         author='Daniel Bershatsky',
         author_email='[email protected]',
         maintainer='Daniel Bershatsky',
         maintainer_email='[email protected]',
         license='MIT',
         platforms=PLATFORMS,
         classifiers=[line for line in CLASSIFIERS.split('\n') if line],
         packages=[
            'nls',
         ],
         ext_modules=[
            FortranExtension(
                name='nls.native',
                sources=[
                    'nls/nls.f90'
                ],
                libraries=[
                    'blas',
                ],
            ),
         ],
         scripts=[
            'tools/check.py',
            'tools/visualize.py',
         ],
    )
Beispiel #26
0
def setup_package():
    write_version_py()
    setup(
        configuration=configuration,
        name=NAME,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=CLASSIFIERS,
        packages=PACKAGES,
        package_data=PACKAGE_DATA,
        install_requires=INSTALL_REQUIRES,
        entry_points=ENTRY_POINTS,
        data_files=DATA_FILES,
        zip_safe=False,
        test_suite='Orange.tests.test_suite',
        cmdclass={
            'lint': LintCommand,
            'coverage': CoverageCommand,
        },
    )
Beispiel #27
0
def setup_package():
    from numpy.distutils.core import setup
    from numpy.distutils.misc_util import Configuration

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0, local_path)

    main_scripts = [
        'volume_slicer.py',
    ]

    try:
        setup(name = 'gensei',
              maintainer = "Robert Cimrman",
              maintainer_email = "[email protected]",
              description = DOCLINES[0],
              long_description = "\n".join(DOCLINES[2:]),
              url = "http://code.google.com/p/gensei",
              download_url = DOWNLOAD_URL,
              license = 'BSD',
              classifiers = filter(None, CLASSIFIERS.split('\n')),
              platforms = ["Linux", "Mac OS-X", 'Windows'],
              scripts = main_scripts,
#              cmdclass = {'install_scripts' : install_scripts},
              configuration = configuration)
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #28
0
def setup_package():
    metadata = dict(
        name="skgp",
        author="Jan Hendrik Metzen",
        author_email="[email protected]",
        description="Extended Gaussian Process functionality for sklearn",
        long_description=open("README.rst").read(),
        license="new BSD",
        url="https://github.com/jmetzen/skgp",
        version="0.0",
        classifiers=[
            "Intended Audience :: Science/Research",
            "Intended Audience :: Developers",
            "Programming Language :: Python",
            "Operating System :: Microsoft :: Windows",
            "Operating System :: POSIX",
            "Operating System :: Unix",
            "Operating System :: MacOS",
            "Programming Language :: Python :: 2",
            "Programming Language :: Python :: 2.7",
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.3",
        ],
        requires=["numpy", "scipy", "sklearn", "emcee"])

    metadata['configuration'] = configuration

    from numpy.distutils.core import setup

    setup(**metadata)
Beispiel #29
0
def setup_package():
    from numpy.distutils.core import setup

    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0, local_path)
    sys.path.insert(0, os.path.join(local_path, 'sfepy')) # to retrive version

    # Write the version file.
    fd = open('VERSION', 'w')
    fd.write(VERSION)
    fd.close()

    # Create version.h file.
    filename_in = 'sfepy/discrete/fem/extmods/version.h.in'
    filename_out = 'sfepy/discrete/fem/extmods/version.h'
    fdi = open(filename_in, 'r')
    fdo = open(filename_out, 'w')
    for line in fdi:
        if line.find('VERSION "0.0.0"') >= 0:
            aux = line.split()
            aux[2] = VERSION
            line = ' '.join(aux) + '\n'
        fdo.write(line)
    fdi.close()
    fdo.close()

    main_scripts = [
        'phonon.py',
        'extractor.py',
        'homogen.py',
        'postproc.py',
        'probe.py',
        'run_tests.py',
        'schroedinger.py',
        'shaper.py',
        'simple.py',
        'test_install.py',
    ]

    try:
        setup(name = 'sfepy',
              maintainer = "Robert Cimrman",
              maintainer_email = "[email protected]",
              description = DOCLINES[0],
              long_description = "\n".join(DOCLINES[2:]),
              url = "http://sfepy.org",
              download_url = DOWNLOAD_URL,
              license = 'BSD',
              classifiers = filter(None, CLASSIFIERS.split('\n')),
              platforms = ["Linux", "Mac OS-X", 'Windows'],
              scripts = main_scripts,
              cmdclass = cmdclass,
              configuration = configuration)
    finally:
        del sys.path[0]
        os.chdir(old_path)

    return
Beispiel #30
0
def setup_package():
    old_path = os.getcwd()
    local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    os.chdir(local_path)
    sys.path.insert(0, local_path)

    try:
        setup(
            name="sdpy",
            maintainer="Minh-Tri Pham et. al.",
            maintainer_email="[email protected]",
            description=DOCLINES[0],
            url="http://code.google.com/p/sdpy",
            license="GNU Public License version 3",
            author="Minh-Tri Pham et. al.",
            author_email="[email protected]",
            platforms="Windows, Linux, MacOS",
            classifiers=filter(None, CLASSIFIERS.split("\n")),
            long_description="\n".join(DOCLINES[2:]),
            configuration=configuration,
        )
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return