Skip to content

Commit

Permalink
Updated setup.py to use --std=c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkorhonen committed Jan 9, 2017
1 parent 0a18cbb commit 4314eac
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@

from distutils.core import setup, Extension

common_includes = ["core/"]
common_compile_args = ['-march=native', '-O3', '-fPIC', '--std=c++11']


tools_mod = Extension('MOODS._tools',
sources=['core/tools_wrap.cxx',
'core/moods_tools.cpp',
'core/moods_misc.cpp',
'core/match_types.cpp'],
include_dirs=["core/"],
extra_compile_args=['-march=native', '-O3', '-fPIC', '--std=c++0x'],
include_dirs=common_includes,
extra_compile_args=common_compile_args,
)

scan_mod = Extension('MOODS._scan',
Expand All @@ -26,8 +29,8 @@
'core/moods_tools.cpp',
'core/match_types.cpp'
],
include_dirs=["core/"],
extra_compile_args=['-march=native', '-O3', '-fPIC', '--std=c++0x'],
include_dirs=common_includes,
extra_compile_args=common_compile_args,
)

parsers_mod = Extension('MOODS._parsers',
Expand All @@ -36,12 +39,12 @@
'core/moods_misc.cpp',
'core/moods_tools.cpp',
'core/match_types.cpp'],
include_dirs=["core/"],
extra_compile_args=['-march=native', '-O3', '-fPIC', '--std=c++0x'],
include_dirs=common_includes,
extra_compile_args=common_compile_args,
)

setup (name = 'MOODS-python',
version = '1.9.1',
version = '1.9.3',
description = 'MOODS: Motif Occurrence Detection Suite',
maintainer = "Janne H. Korhonen",
maintainer_email = "janne.h.korhonen@gmail.com",
Expand Down

0 comments on commit 4314eac

Please sign in to comment.