8000 Fix some minor warnings in extensions by QuLogic · Pull Request #7514 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

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
Next Next commit
BLD: Fix removal of -Wstrict-prototypes option.
Current releases of distutils (2.7 & 3.5, at least) import
customize_compiler into the build_ext namespace, so changing the
original doesn't actually have any effect.
  • Loading branch information
QuLogic committed Nov 25, 2016
commit d5b150b7f87b7af33673f99bc011d8f93683f91f
7 changes: 4 additions & 3 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from distutils import sysconfig
from distutils import version
from distutils.core import Extension
import distutils.command.build_ext
import glob
import multiprocessing
import os
Expand Down Expand Up @@ -228,8 +229,8 @@ def print_line(*args, **kwargs):
print_status = print_message = print_raw = print_line


# Remove the -Wstrict-prototypesoption, is it's not valid for C++
customize_compiler = sysconfig.customize_compiler
# Remove the -Wstrict-prototypes option, is it's not valid for C++
customize_compiler = distutils.command.build_ext.customize_compiler


def my_customize_compiler(compiler):
Expand All @@ -240,7 +241,7 @@ def my_customize_compiler(compiler):
pass
return retval

sysconfig.customize_compiler = my_customize_compiler
distutils.command.build_ext.customize_compiler = my_customize_compiler


def make_extension(name, files, *args, **kwargs):
Expand Down
0