import os

import numpy.distutils.core as core

# Configure our C modules that are built with f2py.
tridiag = core.Extension(name = 'dadi.tridiag',
                         sources = ['dadi/tridiag.pyf', 'dadi/tridiag.c'])
int_c = core.Extension(name = 'dadi.integration_c',
                       sources = ['dadi/integration_c.pyf', 
                                  'dadi/integration1D.c',
                                  'dadi/integration2D.c', 
                                  'dadi/integration3D.c',
                                  'dadi/integration_shared.c',
                                  'dadi/tridiag.c'])

try:
    os.system("svnversion > dadi/svnversion")
except:
    os.sys.stderr.write("Call to svnversion failed. Cannot automatically "
                        "include version information.")

core.setup(name='dadi',
           version='devel',
           author='Ryan Gutenkunst',
           author_email='rng7@cornell.edu',
           url='http://dadi.googlecode.com',
           ext_modules = [tridiag, int_c],
           scripts=['scripts/ms_jsfs.py'],
           packages=['dadi'], 
           package_data = {'dadi':['svnversion']},
           )

import os

import numpy.distutils.core as core

# Configure our C modules that are built with f2py.
tridiag = core.Extension(name = 'dadi.tridiag',
                         sources = ['dadi/tridiag.pyf', 'dadi/tridiag.c'])
int_c = core.Extension(name = 'dadi.integration_c',
                       sources = ['dadi/integration_c.pyf', 
                                  'dadi/integration1D.c',
                                  'dadi/integration2D.c', 
                                  'dadi/integration3D.c',
                                  'dadi/integration_shared.c',
                                  'dadi/tridiag.c'])

try:
    os.system("svn up")
    os.system("svnversion > dadi/svnversion")
except:
    os.sys.stderr.write("Call to svnversion failed. Cannot automatically "
                        "include version information.")

core.setup(name='dadi',
           version='devel',
           author='Ryan Gutenkunst',
           author_email='rng7@cornell.edu',
           url='http://dadi.googlecode.com',
           ext_modules = [tridiag, int_c],
           scripts=['scripts/ms_jsfs.py'],
           packages=['dadi'], 
           package_data = {'dadi':['svnversion']},
           )

Update svn before setup so well have up-to-date snvversion.