Code Search for Developers
 
 
  

wrap_f2py_setup.py from matplotlib at Krugle


Show wrap_f2py_setup.py syntax highlighted

#!/usr/bin/env python
"""Setup script for F2PY-processed, Fortran based extension modules.

A typical call is:

% ./setup.py install --home=~/usr

This will build and install the generated modules in ~/usr/lib/python.

If called with no args, the script defaults to the above call form (it
automatically adds the 'install --home=~/usr' options)."""

# Global variables for this extension:
name         = "mwadap_tools"  # name of the generated python extension (.so)
description  = "F2PY-wrapped MultiWavelet Tree Toolbox"
author       = "Fast Algorithms Group - CU Boulder"
author_email = "fperez@colorado.edu"

# Necessary sources, _including_ the .pyf interface file
sources = """
binary_decomp.f90 binexpandx.f90 bitsequence.f90 constructwv.f90
display_matrix.f90 findkeypos.f90 findlevel.f90 findnodx.f90 gauleg.f90
gauleg2.f90 gauleg3.f90 ihpsort.f90 invert_f2cmatrix.f90 keysequence2d.f90
level_of_nsi.f90 matmult.f90 plegnv.f90 plegvec.f90 r2norm.f90 xykeys.f90

mwadap_tools.pyf""".split()

# Additional libraries required by our extension module (these will be linked
# in with -l):
libraries = ['m']

# Set to true (1) to turn on Fortran/C API debugging (very verbose)
debug_capi = 0

#***************************************************************************
# Do not modify the code below unless you know what you are doing.

# Required modules
import sys,os
from os.path import expanduser,expandvars
from scipy_distutils.core import setup,Extension

expand_sh = lambda path: expanduser(expandvars(path))

# Additional directories for libraries (besides the compiler's defaults)
fc_vendor = os.environ.get('FC_VENDOR','Gnu').lower()
library_dirs = ["~/usr/lib/"+fc_vendor]

# Modify default arguments (if none are supplied) to install in ~/usr
if len(sys.argv)==1:
    default_args = 'install --home=~/usr'
    print '*** Adding default arguments to setup:',default_args
    sys.argv += default_args.split()  # it must be a list

# Additional options specific to f2py:
f2py_options = []
if debug_capi:
    f2py_options.append('--debug-capi')

# Define the extension module(s)
extension = Extension(name = name,
                      sources = sources,
                      libraries = libraries,
                      library_dirs = map(expand_sh,library_dirs),
                      f2py_options = f2py_options,
                      )

# Call the actual building/installation routine, in usual distutils form.
setup(name = name,
      description  = description,
      author       = author,
      author_email = author_email,
      ext_modules  = [extension],
      )




See more files for this project here

matplotlib

Matplotlib is a pure python plotting library with the goal of making\r\npublication quality plots using a syntax familiar to matlab users. \r\nThe library uses Numeric for handling large\r\ndata sets and supports a variety of output backends

Project homepage: http://sourceforge.net/projects/matplotlib
Programming language(s): C,C++,Python
License: other

  scipy/
    bessel.py
    example1.1
    example10.2.1
    example10.2.2
    example10.2.3
    example10.2.5
    example10.3.1
    example10.3.2
    example10.3.6
    example10.4.4
    example2.1
    example2.2
    example2.3
    example3.1
    example3.2
    example4.1
    example4.2
    example4.3
    example4.4
    example4.5
    example4.6
    example5.1
    example5.2
    example5.3
    example5.4
    example5.5
    example5.6
    example5.7
    example5.8
    example5.9
    example6.1
    example6.2
    example6.3
    example6.4
    least_squares_fit.py
    roots1d.py
  .matplotlibrc
  README
  WallisPi.py
  WindowLevelInterface.py
  __init__.py
  colors.py
  erathostenes.py
  ip_embed-short.py
  ip_embed.py
  ip_expensive_init.py
  ip_simple.py
  ip_simple2.py
  mayavi_bighead.py
  mpl_agg_oo.py
  mpl_image_ratner.py
  mpl_imshow.py
  mpl_pylab.py
  mpl_set_get.py
  mpl_subplot_demo.py
  parse_file.py
  runall.py
  vtk_hello.py
  vtk_marching_cubes.py
  vtk_slice_viewer.py
  weave_callback.py
  weave_cplx.py
  weave_examples.py
  wrap_f2py_setup.py
  wrap_weave.py