Skip to content

Fix some minor warnings in extensions #7514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 27, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix NumPy's printf format specifiers in C++.
Not sure why it works locally but not on Travis.
  • Loading branch information
QuLogic committed Nov 26, 2016
commit 1ccdfc1aa9814eb09880e86a06a54b8032359bd3
3 changes: 3 additions & 0 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ def add_flags(self, ext):
ext.define_macros.append(('NPY_NO_DEPRECATED_API',
'NPY_1_7_API_VERSION'))

# Allow NumPy's printf format specifiers in C++.
ext.define_macros.append(('__STDC_FORMAT_MACROS', 1))

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

Expand Down