Skip to content

Commit

Permalink
sticking with gcc/mingw no visual c/c++ for me
Browse files Browse the repository at this point in the history
  • Loading branch information
asselapathirana committed Sep 25, 2016
1 parent 20260f1 commit f413453
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,6 @@ def read(*names, **kwargs):
cargs=['-Wno-format']


BUILD_ARGS = defaultdict(lambda: ['-O3', '-g0'])
for compiler, args in [
('msvc', []),
('gcc', ['-Wno-format'])]:
BUILD_ARGS[compiler] = args

class build_ext_compiler_check(build_ext):
def build_extensions(self):
compiler = self.compiler.compiler_type
args = BUILD_ARGS[compiler]
for ext in self.extensions:
ext.extra_compile_args = args
build_ext.build_extensions(self)




setup(
name='epanettools',
Expand Down Expand Up @@ -173,5 +157,4 @@ def build_extensions(self):
)
],
tests_require=['tox'],
cmdclass = {'test': Tox,'build_ext': build_ext_compiler_check },
)

0 comments on commit f413453

Please sign in to comment.