Skip to content

Commit

Permalink
Adding version requirement for matplotlib in setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed May 29, 2014
1 parent 23e806c commit b494db3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distmesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# see <http://www.gnu.org/licenses/>.
#-----------------------------------------------------------------------------

__version__ = '1.1'
__version__ = '1.2'

#-----------------------------------------------------------------------------
# Imports
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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,
Expand Down

0 comments on commit b494db3

Please sign in to comment.