From b494db37fb74ea88d69ce41a0c134e045fb86f35 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Wed, 28 May 2014 19:33:55 -0700 Subject: [PATCH] Adding version requirement for matplotlib in setup. Reviewed in https://codereview.appspot.com/101910043/ --- distmesh/__init__.py | 2 +- setup.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/distmesh/__init__.py b/distmesh/__init__.py index 44f5f69..4822356 100644 --- a/distmesh/__init__.py +++ b/distmesh/__init__.py @@ -13,7 +13,7 @@ # see . #----------------------------------------------------------------------------- -__version__ = '1.1' +__version__ = '1.2' #----------------------------------------------------------------------------- # Imports diff --git a/setup.py b/setup.py index 39ed674..8fb4e9f 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,8 @@ import numpy as np from distutils.core import setup +from distutils.extension import Extension + # Read version from distmesh/__init__.py with open(os.path.join('distmesh', '__init__.py')) as f: @@ -24,8 +26,8 @@ line = f.readline() exec(line, globals()) + # Build list of cython extensions -from distutils.extension import Extension ext_modules = [ Extension( 'distmesh._distance_functions', @@ -38,6 +40,10 @@ # distmesh._distance_functions needs LAPACK ext_modules[0].libraries.append('lapack') +install_requires = [ + 'matplotlib>=1.2', +] + long_description = open('README.rst').read() setup(name='PyDistMesh', @@ -54,6 +60,7 @@ author='Bradley Froehle', author_email='brad.froehle@gmail.com', url='https://github.com/bfroehle/pydistmesh', + install_requires=install_requires, license='GPL', packages=['distmesh'], ext_modules=ext_modules,