pymmf / setup.py

mforbes f88b98b 
mforbes 0b72eba 







mforbes f88b98b 



Michael Forbes 42b6b0d 


mforbes f88b98b 


mforbes a362b1c 

mforbes f88b98b 


mforbes a362b1c 


mforbes f88b98b 







mforbes 6c3f487 



mforbes a362b1c 




mforbes 6c3f487 

mforbes a362b1c 
mforbes f88b98b 
mforbes 6c3f487 




mforbes f88b98b 
Michael Forbes f192e90 
mforbes f88b98b 




mforbes a9072d0 
mforbes 788e805 

mforbes 346c84f 
mforbes f88b98b 



mforbes 6c3f487 
mforbes f88b98b 






mforbes 0b72eba 
"""These utilities provide a bunch of additional functionality to python,
including:
 - Archiving features (essentially pickling to disk for long term
   storage in a human readable format, and relativley rebust to code
   changes).
 - StateVars base class that provides a mechanism for inheratable
   properties with descriptions, and default construction etc.
 - Various math functions and utilities, especially integration
   routines, interpolation routines, and ode solvers.
"""

# Author: Michael McNeil Forbes <mforbes@physics.ubc.ca>

from distribute_setup import use_setuptools
use_setuptools()

dependencies = []

if __name__ == "__main__":
    #from setuptools import setup, find_packages, Extension
    from setuptools import find_packages
    from ez_setup import use_setuptools
    use_setuptools()

    from numpy.distutils.core import setup, Extension


#def configuration(parent_package='',top_path=None):
#    from numpy.distutils.misc_util import Configuration
#    config = Configuration(None, parent_package, top_path)
#    config.add_subpackage('mmf')
#    config.add_data_dir(('mmf/doc','doc'))
#    return config


# Multidimensional Quadrature
ext_dcuhre = Extension(
    'mmf.math.integrate._dcuhre',
    sources = ['mmf/math/integrate/DCUHRE/%s'%(s,)
               for s in ['dcuhre.pyf','dcuhre.f',
                         'd07hre.f','d09hre.f',
                         'd113re.f','d132re.f',
                         'dadhre.f','dchhre.f',
                         'dfshre.f','dinhre.f',
                         'drlhre.f','dtrhre.f']],
    )


# Optimized Fermi distribution calculations
ext_fermi_cpp = Extension(
    'mmf.math.special.fermi.fermi_cpp',
    sources = ['mmf/math/special/fermi/fermi_cppmodule.cc'],
    )

setup(name='pymmf',
      version='1.0',
      packages = find_packages(),

      # Project uses sphinx for documentation, so ensure that we have
      # docutils:
      install_requires = [#"Sphinx >= 0.5",
                          #"numpy >= 1.0", 
                          #"scipy >= 0.5",
                          # "zope.interface",
                          #"bvp >= 2.4",
                          ],

      # Extension modules
      ext_modules = [ext_dcuhre, ext_fermi_cpp],

      # Metadata
      author='Michael McNeil Forbes',
      author_email='mforbes@physics.ubc.ca',
      url='http://alum.mit.edu/www/mforbes',
      description="Michael McNeil Forbes' utilities",
      long_description=__doc__,
      )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.