diff --git a/setup.py b/setup.py index 58b1de3..22c95e5 100644 --- a/setup.py +++ b/setup.py @@ -139,24 +139,6 @@ def build_extensions(self): build_ext.build_extensions(self) -class MyBuilderWindows(build_ext): - def build_extensions(self): - cflags = extra_compile_args - # cflags += ['-std=c++11'] - - # Add the appropriate extra flags for that compiler. - for e in self.extensions: - if any( - ['.cc' in f or '.cpp' in f for f in e.sources] - ): - e.extra_compile_args = cflags - # for flag in lflags: - # e.extra_link_args.append(flag) - - # Now run the normal build function. - build_ext.build_extensions(self) - - # # Make the extensions to be built # @@ -257,9 +239,7 @@ def build_extensions(self): kw = {} -if os.name == 'nt': - kw['cmdclass'] = {"build_ext": MyBuilderWindows} -else: +if os.name != 'nt': kw['cmdclass'] = {"build_ext": MyBuilder} setup(