Skip to content

Commit

Permalink
try specifying numpy in setup; remove language spec
Browse files Browse the repository at this point in the history
add back in c++11
  • Loading branch information
e-lo committed Jan 10, 2019
1 parent 25a1d65 commit dafadda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
configparser
functools32;python_version<="2.7"
future
numpy
numpy>=1.15
pandas==0.22
partridge==0.6.0.dev1
psutil
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

### Settings for Extension Building
#compile_args = sysconfig.get_config_var('CFLAGS').split()
compile_args=[]#+compile_args
compile_args=["-std=c++11"]#+compile_args

if sys.platform == 'darwin':
compile_args+=["-std=c++11","-mmacosx-version-min=10.9"]
compile_args+=["-mmacosx-version-min=10.9"]

extension = Extension('_fasttrips',
sources=['src/fasttrips.cpp',
Expand All @@ -18,7 +18,6 @@
'src/path.cpp',
'src/pathfinder.cpp',
],
language='c++11',
extra_compile_args = compile_args,
include_dirs=[numpy.get_include()],
)
Expand Down Expand Up @@ -50,7 +49,7 @@
'Programming Language :: Python :: 3.6'],
keywords = 'transit model dynamic passenger assignment simulation',
install_requires = ['functools32;python_version<="2.7"',
'numpy',
'numpy>=1.15',
'pandas==0.22',
'partridge==0.6.0.dev1',
'future',
Expand Down

0 comments on commit dafadda

Please sign in to comment.