Skip to content

Commit

Permalink
adds OS check to setup for extra_compile_args
Browse files Browse the repository at this point in the history
  • Loading branch information
lacava committed Nov 20, 2018
1 parent cc7d79b commit 0be1b5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion few/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"""

__version__ = '0.0.49'
__version__ = '0.0.50'
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ def calculate_version():
# depends = ['Eigen/Dense.h'],
# extra_compile_args = ['-std=c++0x']
# )

# check if windows or *nix
from sys import platform
print('platform:',platform)
if platform == 'win32':
eca = ''
else:
eca = '-std=c++0x'

setup(
name='FEW',
version=package_version,
Expand Down Expand Up @@ -76,6 +85,6 @@ def calculate_version():
sources=["few/lib/few_lib.pyx"],
include_dirs=[".", "./few/lib"] +
eigency.get_includes(),
extra_compile_args = ['-std=c++0x'])],
extra_compile_args = [eca])],
language="c++")
)

0 comments on commit 0be1b5d

Please sign in to comment.