Skip to content

Commit

Permalink
Turn numpy deprecation warnings into errors
Browse files Browse the repository at this point in the history
By defining a macro in setupext.py
  • Loading branch information
jkseppan committed Sep 21, 2014
1 parent 514899e commit e3d70c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setupext.py
Expand Up @@ -824,6 +824,9 @@ def add_flags(self, ext):
ext.define_macros.append(('PY_ARRAY_UNIQUE_SYMBOL', array_api_name))
ext.add_hook('include_dirs', self.include_dirs_hook)

ext.define_macros.append(('NPY_NO_DEPRECATED_API',
'NPY_1_7_API_VERSION'))

def get_setup_requires(self):
return ['numpy>=1.6']

Expand Down

0 comments on commit e3d70c0

Please sign in to comment.