8000 Merge pull request #20937 from charris/backport-20934 · numpy/numpy@a796a99 · GitHub
[go: up one dir, main page]

Skip to content

Commit a796a99

Browse files
authored
Merge pull request #20937 from charris/backport-20934
BUG: Fix build_ext interaction with non numpy extensions
2 parents 2f11271 + 3f83722 commit a796a99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/distutils/command/build_ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def build_extension(self, ext):
393393
log.info("building '%s' extension", ext.name)
394394

395395
extra_args = ext.extra_compile_args or []
396-
extra_cflags = ext.extra_c_compile_args or []
397-
extra_cxxflags = ext.extra_cxx_compile_args or []
396+
extra_cflags = getattr(ext, 'extra_c_compile_args', None) or []
397+
extra_cxxflags = getattr(ext, 'extra_cxx_compile_args', None) or []
398398

399399
macros = ext.define_macros[:]
400400
for undef in ext.undef_macros:

0 commit comments

Comments
 (0)
0