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 = "*****@*****.**", 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
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 = "*****@*****.**", 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
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
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='*****@*****.**', maintainer='Daniel Bershatsky', maintainer_email='*****@*****.**', 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', ], )
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 )
def main(**extra_args): from numpy.distutils.core import setup setup( name = 'Connectome Viewer', version = INFO_VARS['version'], author = "Stephan Gerhard", author_email = "*****@*****.**", 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 = '*****@*****.**', platforms = ["Linux", "Unix"], url = 'http://www.connectomeviewer.org/', scripts = glob('scripts/*'), configuration = configuration, **extra_args )
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)
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 = '*****@*****.**', url = 'http://nipy.org/nipype', long_description = desc, configuration = configuration, cmdclass = cmdclass, install_requires=install_requires, **extra_args)
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 = "*****@*****.**", 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
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)
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, )
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 = "*****@*****.**", 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
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 = "*****@*****.**", 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 = "*****@*****.**", platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], configuration=configuration ) finally: del sys.path[0] os.chdir(old_path) return
def setup_package(): metadata = dict( name="skgp", author="Jan Hendrik Metzen", author_email="*****@*****.**", 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)
def main(): setup(name = 'glu', version = get_version(), author = 'Kevin Jacobs', author_email = '*****@*****.**', maintainer = 'Kevin Jacobs', maintainer_email = '*****@*****.**', 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'], } )
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 = "*****@*****.**", 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
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, }, )
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)
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 = "*****@*****.**", url = "http://people.su.se/~rcaba/climt", packages = ['climt'], package_dir = {'':'lib'}, package_data = {'climt':['*.so']+DataFiles})
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
def main(**extra_args): from numpy.distutils.core import setup setup( name="nipype", description="Neuroimaging in Python: Pipelines and Interfaces", author="Various", author_email="*****@*****.**", 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 )
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)
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='*****@*****.**', 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)
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 = "*****@*****.**", 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
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
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
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 ], )
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 = "*****@*****.**", description = "PROPACK python wrappers", long_description = "PROPACK python wrappers", license = 'BSD', configuration=configuration ) finally: del sys.path[0] os.chdir(old_path) return
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 = "*****@*****.**", 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
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="*****@*****.**", description=DOCLINES[0], url="http://code.google.com/p/sdpy", license="GNU Public License version 3", author="Minh-Tri Pham et. al.", author_email="*****@*****.**", 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
roscotools_pkgs = find_packages(where='ROSCO_Toolbox') pcrunch_pkgs = find_packages(where='pCrunch') metadata = dict( name='WEIS', version='0.0.1', description='Wind Energy with Integrated Servo-control', long_description=long_description, long_description_content_type='text/markdown', author='NREL', url='https://github.com/WISDEM/WEIS', install_requires=[ 'openmdao>=3.2', 'numpy', 'scipy', 'pandas', 'simpy', 'marmot-agents', 'nlopt', 'dill', 'smt' ], classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], package_dir={ 'wisdem': 'WISDEM/wisdem', 'ROSCO_toolbox.ROSCO_toolbox': 'ROSCO_toolbox', 'pCrunch.pCrunch': 'pCrunch', }, # weis doesn't need special directions packages=weis_pkgs + wisdem_pkgs + roscotools_pkgs + pcrunch_pkgs, python_requires='>=3.6', license='Apache License, Version 2.0', ext_modules=[bemExt, pyframeExt, precompExt, pymapExt, roscoExt, fastExt], cmdclass={'build_ext': CMakeBuildExt}, zip_safe=False, ) setup(**metadata)
if __name__ == "__main__": if os.path.exists('MANIFEST'): os.remove('MANIFEST') setup( name=DISTNAME, maintainer=MAINTAINER, include_package_data=False, maintainer_email=MAINTAINER_EMAIL, description=DESCRIPTION, license=LICENSE, url=URL, version=VERSION, download_url=DOWNLOAD_URL, long_description=open('README.md').read(), zip_safe=False, # the package can run out of an .egg file classifiers=[ 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'License :: OSI Approved', 'Programming Language :: Python', 'Topic :: Software Development', 'Topic :: Scientific/Engineering', 'Operating System :: Linux' ], platforms='any', packages=[ 'jr', 'jr.tests', 'jr.cloud', 'jr.cloud.tests', 'jr.gat', 'jr.gat.tests', 'jr.gif', 'jr.gif.tests', 'jr.meg', 'jr.meg.tests', 'jr.model', 'jr.plot', 'jr.stats', 'jr.stats.tests' ], package_data={}, scripts=[])
setup( name=DISTNAME, description=DESCRIPTION, long_description=LONG_DESCRIPTION, maintainer=MAINTAINER, maintainer_email=MAINTAINER_EMAIL, url=URL, license=LICENSE, download_url=DOWNLOAD_URL, version=VERSION, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Programming Language :: C', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Scientific/Engineering', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', ], install_requires=INSTALL_REQUIRES, requires=REQUIRES, python_requires='>=3.5', packages=setuptools.find_packages(exclude=['doc', 'benchmarks']), include_package_data=True, zip_safe=False, # the package can run out of an .egg file entry_points={ 'console_scripts': ['skivi = skimage.scripts.skivi:main'], }, cmdclass={ 'build_py': build_py, 'build_ext': ConditionalOpenMP, 'sdist': sdist }, **extra)
from numpy.distutils.core import setup from setuptools import find_packages setup( name="load_sio", version="0.1", packages=find_packages() )
sources=['censure_cy.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('orb_cy', sources=['orb_cy.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('brief_cy', sources=['brief_cy.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('_texture', sources=['_texture.c'], include_dirs=[get_numpy_include_dirs(), '../_shared']) config.add_extension('_hessian_det_appx', sources=['_hessian_det_appx.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('_hoghistogram', sources=['_hoghistogram.c'], include_dirs=[get_numpy_include_dirs(), '../_shared']) return config if __name__ == '__main__': from numpy.distutils.core import setup setup(maintainer='scikit-image Developers', author='scikit-image Developers', maintainer_email='*****@*****.**', description='Features', url='https://github.com/scikit-image/scikit-image', license='SciPy License (BSD Style)', **(configuration(top_path='').todict()))
import commands flag = commands.getstatusoutput('swig -c++ -python splinalg.i') if flag[0] != 0: print flag exit() from numpy.distutils.core import setup, Extension splinalg_module = Extension( '_splinalg', sources=['splinalg_wrap.cxx'], define_macros=[('__STDC_FORMAT_MACROS', 1)], ) setup( name='splinalg', version='0.1', author="Luke Olson", description="""basic sparse linear algebra""", ext_modules=[splinalg_module], py_modules=["splinalg"], ) # def configuration(parent_package='',top_path=None): # from numpy.distutils.misc_util import Configuration # # config = Configuration() # # config.add_extension('_splinalg', # define_macros=[('__STDC_FORMAT_MACROS', 1)], # sources=['splinalg_wrap.cxx']) # # return config #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # import setuptools from numpy.distutils.core import setup setup( name='sherpa_samp', version='2.1', author='Smithsonian Astrophysical Observatory / Chandra X-Ray Center', author_email='*****@*****.**', url='http://cxc.harvard.edu/sherpa/', description= 'A SAMP interface to the Sherpa modeling and fitting package for scientific data analysis', packages=['sherpa_samp', 'sherpa_samp.sedstacker_iris'], test_suite="tests", package_data={ 'sherpa_samp': ['tests/*'], 'sherpa_samp.sedstacker_iris': ['tests/*'] }, entry_points={ 'console_scripts': ['sherpa-samp=sherpa_samp.mtypes:main'], }, requires=['astLib', 'scipy', 'sherpa', 'numpy'], )
from numpy.distutils.misc_util import Configuration import numpy import os from Cython.Build import cythonize def configuration(parent_package="", top_path=None): os.environ[ 'CFLAGS'] = '-Wno-cpp -shared -fno-strict-aliasing -fopenmp -ffast-math -O3 -Wall -fPIC' config = Configuration('pattern_search', parent_package, top_path) libraries = [] if os.name == 'posix': libraries.append('m') config.add_extension('mds_fast', sources=["mds_fast.pyx", "mds_pertubations.c"], include_dirs=[numpy.get_include()], libraries=libraries) config.ext_modules[-1] = cythonize(config.ext_modules[-1], language='c')[0] return config if __name__ == '__main__': from numpy.distutils.core import setup setup(**configuration().todict())
def main(): boost_python_libname = find_boost_python() boost_numpy_libname = find_boost_numpy() extensions = [] fext = Extension(name="bdsf._pytesselate", sources=[ "src/fortran/pytess_simple.f", "src/fortran/pytess_roundness.f" ]) fext.f2py_options = [""] extensions.append(fext) libraries = ['minpack', 'port3', 'gfortran', boost_python_libname] if boost_numpy_libname is not None: libraries.append(boost_numpy_libname) extensions.append( Extension( name="bdsf._cbdsm", sources=[ "src/c++/Fitter_dn2g.cc", "src/c++/Fitter_dnsg.cc", "src/c++/Fitter_lmder.cc", "src/c++/MGFunction1.cc", "src/c++/MGFunction2.cc", "src/c++/cbdsm_main.cc", "src/c++/stat.cc", "src/c++/num_util/num_util.cpp" ], libraries=libraries, include_dirs=["src/c++"], library_dirs=[join(srcpath, "minpack"), join(srcpath, "port3")])) extensions.append( Extension(name="bdsf.nat.natgridmodule", sources=glob.glob("natgrid/Src/*.c"), include_dirs=["natgrid/Include"])) # HACK for supporting older versions of NumPy for ext in extensions: ext.extra_f77_compile_args = [] ext.extra_f90_compile_args = [] setup(name='bdsf', version='1.9.2', author='David Rafferty', author_email='*****@*****.**', url='https://github.com/lofar-astron/PyBDSF', description='Blob Detection and Source Finder', long_description=open('README.rst', 'rt').read(), platforms='Linux, Mac OS X', packages=['bdsf', 'bdsf.nat'], package_dir={'bdsf.nat': join('bdsf', 'nat')}, classifiers=[ 'Intended Audience :: Science/Research', 'Programming Language :: C++', 'Programming Language :: Fortran', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Astronomy' ], ext_modules=extensions, install_requires=[ 'backports.shutil_get_terminal_size', 'numpy', 'scipy' ], scripts=['bdsf/pybdsf', 'bdsf/pybdsm'], zip_safe=False, cmdclass={ 'mclean': CleanStatic, 'mbuild': BuildStatic, 'build_ext': BuildExt, 'clean': Clean })
def run_compile(): """ Do it all in one call! """ import tempfile i = sys.argv.index('-c') del sys.argv[i] remove_build_dir = 0 try: i = sys.argv.index('--build-dir') except ValueError: i = None if i is not None: build_dir = sys.argv[i + 1] del sys.argv[i + 1] del sys.argv[i] else: remove_build_dir = 1 build_dir = os.path.join(tempfile.mktemp()) sysinfo_flags = filter(re.compile(r'[-][-]link[-]').match, sys.argv[1:]) sys.argv = filter(lambda a, flags=sysinfo_flags: a not in flags, sys.argv) if sysinfo_flags: sysinfo_flags = [f[7:] for f in sysinfo_flags] f2py_flags = filter( re.compile( r'[-][-]((no[-]|)(wrap[-]functions|lower)|debug[-]capi|quiet)|[-]include' ).match, sys.argv[1:]) sys.argv = filter(lambda a, flags=f2py_flags: a not in flags, sys.argv) f2py_flags2 = [] fl = 0 for a in sys.argv[1:]: if a in ['only:', 'skip:']: fl = 1 elif a == ':': fl = 0 if fl or a == ':': f2py_flags2.append(a) if f2py_flags2 and f2py_flags2[-1] != ':': f2py_flags2.append(':') f2py_flags.extend(f2py_flags2) sys.argv = filter(lambda a, flags=f2py_flags2: a not in flags, sys.argv) flib_flags = filter( re.compile( r'[-][-]((f(90)?compiler([-]exec|)|compiler)=|help[-]compiler)'). match, sys.argv[1:]) sys.argv = filter(lambda a, flags=flib_flags: a not in flags, sys.argv) fc_flags = filter( re.compile( r'[-][-]((f(77|90)(flags|exec)|opt|arch)=|(debug|noopt|noarch|help[-]fcompiler))' ).match, sys.argv[1:]) sys.argv = filter(lambda a, flags=fc_flags: a not in flags, sys.argv) if 1: del_list = [] for s in flib_flags: v = '--fcompiler=' if s[:len(v)] == v: from numpy.distutils import fcompiler fcompiler.load_all_fcompiler_classes() allowed_keys = fcompiler.fcompiler_class.keys() nv = ov = s[len(v):].lower() if ov not in allowed_keys: vmap = {} # XXX try: nv = vmap[ov] except KeyError: if ov not in vmap.values(): print 'Unknown vendor: "%s"' % (s[len(v):]) nv = ov i = flib_flags.index(s) flib_flags[i] = '--fcompiler=' + nv continue for s in del_list: i = flib_flags.index(s) del flib_flags[i] assert len(flib_flags) <= 2, ` flib_flags ` setup_flags = filter(re.compile(r'[-][-](verbose)').match, sys.argv[1:]) sys.argv = filter(lambda a, flags=setup_flags: a not in flags, sys.argv) if '--quiet' in f2py_flags: setup_flags.append('--quiet') modulename = 'untitled' sources = sys.argv[1:] for optname in ['--include_paths', '--include-paths']: if optname in sys.argv: i = sys.argv.index(optname) f2py_flags.extend(sys.argv[i:i + 2]) del sys.argv[i + 1], sys.argv[i] sources = sys.argv[1:] if '-m' in sys.argv: i = sys.argv.index('-m') modulename = sys.argv[i + 1] del sys.argv[i + 1], sys.argv[i] sources = sys.argv[1:] else: from numpy.distutils.command.build_src import get_f2py_modulename pyf_files, sources = filter_files('', '[.]pyf([.]src|)', sources) sources = pyf_files + sources for f in pyf_files: modulename = get_f2py_modulename(f) if modulename: break extra_objects, sources = filter_files('', '[.](o|a|so)', sources) include_dirs, sources = filter_files('-I', '', sources, remove_prefix=1) library_dirs, sources = filter_files('-L', '', sources, remove_prefix=1) libraries, sources = filter_files('-l', '', sources, remove_prefix=1) undef_macros, sources = filter_files('-U', '', sources, remove_prefix=1) define_macros, sources = filter_files('-D', '', sources, remove_prefix=1) using_numarray = 0 using_numeric = 0 for i in range(len(define_macros)): name_value = define_macros[i].split('=', 1) if len(name_value) == 1: name_value.append(None) if len(name_value) == 2: define_macros[i] = tuple(name_value) else: print 'Invalid use of -D:', name_value from numpy.distutils.system_info import get_info num_include_dir = None num_info = {} #import numpy #n = 'numpy' #p = get_prefix(numpy) #from numpy.distutils.misc_util import get_numpy_include_dirs #num_info = {'include_dirs': get_numpy_include_dirs()} if num_info: include_dirs.extend(num_info.get('include_dirs', [])) from numpy.distutils.core import setup, Extension ext_args = { 'name': modulename, 'sources': sources, 'include_dirs': include_dirs, 'library_dirs': library_dirs, 'libraries': libraries, 'define_macros': define_macros, 'undef_macros': undef_macros, 'extra_objects': extra_objects, 'f2py_options': f2py_flags, } if sysinfo_flags: from numpy.distutils.misc_util import dict_append for n in sysinfo_flags: i = get_info(n) if not i: outmess('No %s resources found in system'\ ' (try `f2py --help-link`)\n' % (`n`)) dict_append(ext_args, **i) ext = Extension(**ext_args) sys.argv = [sys.argv[0]] + setup_flags sys.argv.extend([ 'build', '--build-temp', build_dir, '--build-base', build_dir, '--build-platlib', '.' ]) if fc_flags: sys.argv.extend(['config_fc'] + fc_flags) if flib_flags: sys.argv.extend(['build_ext'] + flib_flags) setup(ext_modules=[ext]) if remove_build_dir and os.path.exists(build_dir): import shutil outmess('Removing build directory %s\n' % (build_dir)) shutil.rmtree(build_dir)
def setup_package(): src_path = os.path.dirname(os.path.abspath(__file__)) old_path = os.getcwd() os.chdir(src_path) sys.path.insert(0, src_path) # Rewrite the version file every time write_version_py() # The f2py scripts that will be installed if sys.platform == 'win32': f2py_cmds = [ 'f2py = numpy.f2py.f2py2e:main', ] else: f2py_cmds = [ 'f2py = numpy.f2py.f2py2e:main', 'f2py%s = numpy.f2py.f2py2e:main' % sys.version_info[:1], 'f2py%s.%s = numpy.f2py.f2py2e:main' % sys.version_info[:2], ] cmdclass = { "sdist": sdist_checked, } metadata = dict( name='numpy', maintainer="NumPy Developers", maintainer_email="*****@*****.**", description=DOCLINES[0], long_description="\n".join(DOCLINES[2:]), url="https://www.numpy.org", author="Travis E. Oliphant et al.", download_url="https://pypi.python.org/pypi/numpy", project_urls={ "Bug Tracker": "https://github.com/numpy/numpy/issues", "Documentation": get_docs_url(), "Source Code": "https://github.com/numpy/numpy", }, license='BSD', classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], test_suite='pytest', cmdclass=cmdclass, python_requires='>=3.6', zip_safe=False, entry_points={'console_scripts': f2py_cmds}, ) if "--force" in sys.argv: run_build = True sys.argv.remove('--force') else: # Raise errors for unsupported commands, improve help output, etc. run_build = parse_setuppy_commands() if run_build: # patches distutils, even though we don't use it import setuptools # noqa: F401 from numpy.distutils.core import setup if 'sdist' not in sys.argv: # Generate Cython sources, unless we're generating an sdist generate_cython() metadata['configuration'] = configuration # Customize extension building cmdclass['build_clib'], cmdclass['build_ext'] = get_build_overrides() else: from setuptools import setup # Version number is added to metadata inside configuration() if build # is run. metadata['version'] = get_version_info()[0] try: setup(**metadata) finally: del sys.path[0] os.chdir(old_path) return
# if download not in ['Y','y','yes','Yes','YES']: # sys.exit(0) # import urllib, tarfile # tarfname = 'spherepack3.2.tar' # URL="https://www2.cisl.ucar.edu/sites/default/files/"+tarfname # urllib.urlretrieve(URL,tarfname) # if not os.path.isfile(tarfname): # raise IOError('Sorry, download failed') # tarf = tarfile.open(tarfname) # for f in tarf.getnames(): # ff = os.path.join('src',os.path.basename(f)) # if ff in srcs_spherepack: # sys.stdout.write(f+'\n') # mem = tarf.extractfile(f) # fout = open(ff,'w') # for line in mem.readlines(): # fout.write(line) # fout.close() # tarf.close() if __name__ == "__main__": setup(name='pyspharm', version="1.0.9", description="Python Spherical Harmonic Transform Module", author="Jeff Whitaker", author_email="*****@*****.**", url="http://code.google.com/p/pyspharm", ext_modules=[ext], packages=['spharm'], package_dir={'spharm': 'Lib'})
setup( name=DISTNAME, provides=[PACKAGENAME], version=__version__, description="Compact Object Synthesis and Monte Carlo Investigation Code", long_description=long_description, long_description_content_type='text/markdown', ext_modules=[wrapper], author=AUTHOR, author_email=AUTHOR_EMAIL, license=LICENSE, packages=packagenames, include_package_data=True, cmdclass=cmdclass, url='https://github.com/COSMIC-PopSynth/COSMIC', scripts=scripts, setup_requires=setup_requires, install_requires=install_requires, tests_require=tests_require, extras_require=extras_require, python_requires='>3.5, <4', use_2to3=True, classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Intended Audience :: Science/Research', 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Science/Research', 'Natural Language :: English', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', ], )
assume_default_configuration=True, delegate_options_to_subpackages=True, quiet=True) config.add_subpackage('spectre') config.get_version('spectre/version.py') # sets config.version return config # Setup commands go here setup(name=NAME, configuration=configuration, packages=PACKAGES, include_dirs=INCLUDE_DIRS, ext_modules=EXT_MODULES, author=AUTHOR, author_email=AUTHOR_EMAIL, license=LICENSE, description=DESCRIPTION, long_description=LONG_DESCRIPTION, keywords=KEYWORDS, url=URL, classifiers=CLASSIFIERS, platforms=PLATFORMS, requires=REQUIRES, package_data=PACKAGE_DATA, zip_safe=False, install_requires=INSTALL_REQUIRES, **EXTRA_KWARGS)
#!/usr/bin/env python3 def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('testing', parent_package, top_path) config.add_subpackage('_private') config.add_subpackage('tests') return config if __name__ == '__main__': from numpy.distutils.core import setup setup( maintainer="NumPy Developers", maintainer_email="*****@*****.**", description="NumPy test module", url="https://www.numpy.org", license="NumPy License (BSD Style)", configuration=configuration, )
setup( name='pyOpt', version='1.2.0', author='Ruben E. Perez, Peter W. Jansen', author_email='[email protected]; [email protected]', maintainer='pyOpt Developers', maintainer_email='[email protected]; [email protected]', url='http://pyopt.org/', download_url='http://pyopt.org/', description= 'Python package for formulating and solving nonlinear constrained optimization problems', long_description= 'pyOpt is a Python package for formulating and solving nonlinear constrained optimization problems', keywords='optimization', license='GNU LGPL', platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'License :: LGPL', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX :: Linux', 'Operating System :: Unix', 'Operating System :: MacOS', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Software Development', 'Topic :: Education' ], configuration=configuration, cmdclass={"build_ext": build_opt}, #**configuration().todict() )
def finalize_options(self): pass def run(self): errno = os.system("sage -t --force-lib %s" % SRC) if errno != 0: sys.exit(1) ext1 = Extension( name='guptri_py._fguptri_py', # the following silences type mismatch errors in gfortran 10 # (-fallow-argument-mismatch is not recognized by older fortran versions) extra_f77_compile_args=['-std=legacy'], sources=['guptri_py/_fguptri_py.pyf'] + [ os.path.join(TMPDIR, s) for s in ('fguptri.f', 'guptribase.f', 'zguptri.f') ]) from numpy.distutils.core import setup setup(cmdclass={ 'download': DownloadCommand, 'build_ext': BuildExtCommand, 'test': TestCommand, 'clean': CleanCommand, }, name='guptri_py', version=VERSION, packages=["guptri_py"], ext_modules=[ext1])
__version__ = re.findall( r"""__version__ = ["']+([0-9\.]*)["']+""", open('openaerostruct/__init__.py').read(), )[0] setup( name='openaerostruct', version=__version__, description='OpenAeroStruct', author='John Jasa', author_email='*****@*****.**', license='BSD-3', packages=[ 'openaerostruct', 'openaerostruct/geometry', 'openaerostruct/structures', 'openaerostruct/aerodynamics', 'openaerostruct/functionals', 'openaerostruct/integration', 'openaerostruct/common', 'openaerostruct/utils', ], # TODO: fix this with the correct requires install_requires=[], zip_safe=False, # ext_modules=ext, entry_points=""" [console_scripts] plot_wing=openaerostruct.utils.plot_wing:disp_plot plot_wingbox=openaerostruct.utils.plot_wingbox:disp_plot """)
#!/usr/bin/env python import os from numpy.distutils.core import setup, Extension ext1 = Extension(name = 'al', sources = ['alarmas/alarmas.py'], f2py_options = ['--opt = O3']) ext2 = Extension(name = 'fs', sources = ['alarmas/funciones_sora.py']) setup( name='hidro_alarmas', version='0.0.1', author='Hidro SIATA', author_email='*****@*****.**', packages=['alarmas'], package_data={'alarmas':['al.so','fs.so']}, url='https://github.com/SIATAhidro/Alarmas.git', license='LICENSE.txt', description='Despliegue de archivos para pagina de Alarmas Comunitarias', long_description=open('README.md').read(), install_requires=[ ], ext_modules=[ext1, ext2], )
config['classifiers'] = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: NumPy License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: C', 'Programming Language :: Fortran', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Software Development :: Code Generators', ] setup(version=version, description="F2PY - Fortran to Python Interface Generaton", author="Pearu Peterson", author_email="*****@*****.**", maintainer="Pearu Peterson", maintainer_email="*****@*****.**", license="BSD", platforms="Unix, Windows (mingw|cygwin), Mac OSX", long_description="""\ The Fortran to Python Interface Generator, or F2PY for short, is a command line tool (f2py) for generating Python C/API modules for wrapping Fortran 77/90/95 subroutines, accessing common blocks from Python, and calling Python functions from Fortran (call-backs). Interfacing subroutines/data from Fortran 90/95 modules is supported.""", url="http://cens.ioc.ee/projects/f2py2e/", keywords=['Fortran', 'f2py'], **config)
import distutils def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('quicklens',parent_package,top_path) config.add_extension('math.cwignerd', ['quicklens/math/wignerd.pyf', 'quicklens/math/wignerd.c']) if distutils.version.StrictVersion(np.version.version) > distutils.version.StrictVersion('1.6.1'): config.add_extension('shts.fsht', ['quicklens/shts/shts.f90'], libraries=['gomp'], f2py_options=[], extra_f90_compile_args=['-ffixed-line-length-1000', '-fopenmp'], extra_compile_args=['-fopenmp'], extra_link_args=[],) else: config.add_extension('shts.fsht', ['quicklens/shts/shts.f90'], libraries=['gomp'], f2py_options=[], extra_compile_args=['-fopenmp'], extra_link_args=[],) return config if __name__ == "__main__": from numpy.distutils.core import setup packages = ["quicklens","quicklens.cinv","quicklens.qest","quicklens.sims","quicklens.shts","quicklens.math"] data_dir = os.path.join("data","cl","planck_wp_highL","*") package_data = { "quicklens" : [data_dir] } setup(packages=packages, package_data=package_data, configuration=configuration)
setup(name='multi_mesh', version='0.1', author="The MultiMesh Development Team", long_description=readme(), packages=find_packages(), license="MIT", dependency_links=[ 'https://github.com/SalvusHub/pyexodus' '/archive/master.zip#egg=pyexodus-master' ], install_requires=["numpy", "scipy", "click", "h5py", "pyexodus"], platforms="OS Independent", classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Console', 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.7', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Physics' ], entry_points=''' [console_scripts] multi_mesh=multi_mesh.scripts.cli:cli ''' #ext_package='multi_mesh.lib', #ext_modules=[lib] )
if __name__ == "__main__": setup( name=DISTNAME, maintainer=MAINTAINER, maintainer_email=MAINTAINER_EMAIL, description=DESCRIPTION, license=LICENSE, version=VERSION, url=URL, download_url=DOWNLOAD_URL, long_description=open('README.rst').read(), install_requires=[ 'numexpr', ], classifiers=[ 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'License :: OSI Approved', 'Programming Language :: Python', 'Topic :: Software Development', 'Topic :: Scientific/Engineering', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', ], platforms='any', packages=package_tree('picard'), )
inc_dirs = [get_python_inc()] if inc_dirs[0] != get_python_inc(plat_specific=1): inc_dirs.append(get_python_inc(plat_specific=1)) inc_dirs.append(get_numpy_include_dirs()) cfg = dict(get_info('lapack_opt')) cfg.setdefault('include_dirs', []).extend(inc_dirs) cfg.setdefault('define_macros', []).append(('qh_QHpointer', '1')) config.add_extension('qhull', sources=['qhull.c'] + qhull_src, **cfg) config.add_extension('ckdtree', sources=['ckdtree.c']) # FIXME: cython config.add_extension('_distance_wrap', sources=[join('src', 'distance_wrap.c')], depends=[join('src', 'distance_impl.h')], include_dirs=[get_numpy_include_dirs()]) return config if __name__ == '__main__': from numpy.distutils.core import setup setup(maintainer="SciPy Developers", author="Anne Archibald", maintainer_email="*****@*****.**", description="Spatial algorithms and data structures", url="http://www.scipy.org", license="SciPy License (BSD Style)", **configuration(top_path='').todict())
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from os.path import join def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs config = Configuration('cluster', parent_package, top_path) config.add_data_dir('tests') #config.add_extension('_vq', # sources=[join('src', 'vq_module.c'), join('src', 'vq.c')], # include_dirs = [get_numpy_include_dirs()]) config.add_sconscript('SConstruct') return config if __name__ == '__main__': from numpy.distutils.core import setup setup(maintainer="SciPy Developers", author="Eric Jones", maintainer_email="*****@*****.**", description="Clustering Algorithms (Information Theory)", url="http://www.scipy.org", license="SciPy License (BSD Style)", **configuration(top_path='').todict())
from numpy.distutils.core import Extension, setup ext_modules = [ Extension( name='topo3d', sources=[ 'Topo3D/conductionQ2.f90', 'Topo3D/conductionT2.f90', ] ), Extension( name='asteroids', sources=[ 'Asteroids/asteroid_fast1.f90', ] ) ] setup( name='pcc', author='Norbert Schorghofer', ext_modules=ext_modules )
common_src = ['fmfield.c', 'refmaps.c', 'geommech.c', 'common_python.c'] common_src = [op.join(common_path, ii) for ii in common_src] src = ['bases.pyx', 'lagrange.c'] config.add_extension('bases', sources=src, libraries=['sfepy_common'], depends=common_src, extra_compile_args=site_config.compile_flags(), extra_link_args=site_config.link_flags(), include_dirs=[auto_dir, common_path], define_macros=defines) src = ['lobatto_bases.pyx', 'lobatto.c', 'lobatto1d.c'] config.add_extension('lobatto_bases', sources=src, libraries=['sfepy_common'], depends=common_src, extra_compile_args=site_config.compile_flags(), extra_link_args=site_config.link_flags(), include_dirs=[auto_dir, common_path], define_macros=defines) return config if __name__ == '__main__': from numpy.distutils.core import setup setup(**configuration(top_path='').todict())
import os if 'BOOSTINCLUDE' in os.environ: return [os.environ['BOOSTINCLUDE']] else: #assume that we're on a platform (i.e. linux) where boost will be on the standard include path return [] def configuration(parent_package = '', top_path = None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs from glob import glob config = Configuration('abf', parent_package, top_path) config.add_extension('abf', sources=['abf.cpp', 'axon/AxAbfFio32/*.cpp', 'axon/Common/*.cpp', 'axon/Common/*.c'], include_dirs = [get_numpy_include_dirs()] + getBoostInclude(), extra_compile_args = ['-O3', '-fno-exceptions', '-D__UNIX__','-D__STF__']) return config if __name__ == '__main__': from numpy.distutils.core import setup setup(description = 'Axon abf file import', author = 'David Baddeley', author_email = '*****@*****.**', url = '', long_description = """ """, license = "GPL", **configuration(top_path='').todict() )
from __future__ import division, print_function def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('polynomial', parent_package, top_path) config.add_data_dir('tests') return config if __name__ == '__main__': from numpy.distutils.core import setup setup(configuration=configuration)
% (package)) print("You can find it here:") print(url) sys.exit(1) flag,mesg = get_package(package, url, options=extra_options) if flag != 1: print(mesg) sys.exit(1) print(mesg) # Now, see if optional packages are there for package,url in optional_packages: try: res = __import__(package) except ImportError: print("Package %s is does not appear to be installed. It is optional" %\ (package)) print("Would you like me to try installing it now? (y/n)") answer = "" while answer != 'y' and answer != 'n': answer = input() if answer == 'n': continue flag,mesg = get_package(package, url, options=extra_options) print(mesg) setup(version='0.5.0', author='Chris Burns (Carnegie Observatories)', author_email='*****@*****.**', **configuration(top_path='').todict())