8000 BUG: Fix for #6569, allowing build_ext --inplace · numpy/numpy@a76c275 · GitHub
[go: up one dir, main page]

Skip to content

Commit a76c275

Browse files
wackywendellrgommers
authored andcommitted
BUG: Fix for #6569, allowing build_ext --inplace
(cherry picked from commit 02b42d4)
1 parent 7fe8a6b commit a76c275

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/testing/nosetester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class NoseTester(object):
177177
'swig_ext']
178178

179179
def __init__(self, package=None, raise_warnings=None):
180-
if raise_warnings is None and '.dev0' in np.__version__:
180+
if raise_warnings is None and (
181+
not hasattr(np, '__version__') or '.dev0' in np.__version__):
181182
raise_warnings = "develop"
182183
elif raise_warnings is None:
183184
raise_warnings = "release"

0 commit comments

Comments
 (0)
0