Codebase list python-numpysane / upstream/0.19 setup.py
upstream/0.19

Tree @upstream/0.19 (Download .tar.gz)

setup.py @upstream/0.19raw · history · blame

#!/usr/bin/python

from setuptools import setup
import re
import glob

version = None
with open("numpysane.py", "r") as f:
    for l in f:
        m = re.match("__version__ *= *'(.*?)' *$", l)
        if m:
            version = m.group(1)
            break

if version is None:
    raise Exception("Couldn't find version in 'numpysane.py'")

pywrap_templates = glob.glob('pywrap-templates/*.c')

setup(name         = 'numpysane',
      version      = version,
      author       = 'Dima Kogan',
      author_email = 'dima@secretsauce.net',
      url          = 'http://github.com/dkogan/numpysane',
      description  = 'more-reasonable core functionality for numpy',

      long_description = """numpysane is a collection of core routines to provide basic numpy
functionality in a more reasonable way""",

      license      = 'LGPL-3+',
      py_modules   = ['numpysane', 'numpysane_pywrap'],
      data_files = [ ('pywrap-templates', pywrap_templates)],

      # Tell setuputils to not deal with the egg nonsense. numpysane_pywrap.py
      # assumes this
      eager_resources = pywrap_templates,
      test_suite   = 'test_numpysane',
      install_requires = 'numpy')