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,