Skip to content

Commit

Permalink
STY: clean up unused code. Closes #1409. Thanks to Bruce Southey.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Jan 24, 2011
1 parent 437e555 commit ae6416a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions numpy/distutils/ccompiler.py
Expand Up @@ -17,13 +17,6 @@
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:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit ae6416a

Please sign in to comment.