diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-12-12 19:01:56 +0800 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2011-01-24 18:42:24 +0800 |
commit | ae6416a207339fa672728d8197e829a3980bbea7 (patch) | |
tree | 69f353c89aae467be78c92fbb7395f9b951f3cea /numpy/distutils | |
parent | 437e555e0b2a742f0d5af88132f68fbe96dcbc3f (diff) | |
download | numpy-ae6416a207339fa672728d8197e829a3980bbea7.tar.gz |
STY: clean up unused code. Closes #1409. Thanks to Bruce Southey.
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/ccompiler.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 011122b60..0e8f10fcf 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -17,13 +17,6 @@ from numpy.distutils.misc_util import cyg2win32, is_sequence, mingw32, \ quote_args, msvc_on_amd64 from numpy.distutils.compat import get_exception -# hack to set compiler optimizing options. Needs to integrated with something. -import distutils.sysconfig -_old_init_posix = distutils.sysconfig._init_posix -def _new_init_posix(): - _old_init_posix() - distutils.sysconfig._config_vars['OPT'] = '-Wall -g -O0' -#distutils.sysconfig._init_posix = _new_init_posix def replace_method(klass, method_name, func): if sys.version_info[0] < 3: @@ -346,12 +339,7 @@ def CCompiler_customize(self, dist, need_cxx=0): if need_cxx: # In general, distutils uses -Wstrict-prototypes, but this option is # not valid for C++ code, only for C. Remove it if it's there to - # avoid a spurious warning on every compilation. All the default - # options used by distutils can be extracted with: - - # from distutils import sysconfig - # sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', - # 'CCSHARED', 'LDSHARED', 'SO') + # avoid a spurious warning on every compilation. try: self.compiler_so.remove('-Wstrict-prototypes') except (AttributeError, ValueError): |