-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
74 lines (66 loc) · 3.34 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import os,sys
from setuptools import setup, Extension
import sysconfig
import numpy
# read the contents of your README file
this_directory = os.path.abspath(os.path.dirname(__file__))
if sys.version_info[0] > 3:
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
else:
long_description = "Fast-Trips is a Dynamic Transit Passenger Assignment tool written in Python and supplemented by code in C++."
### Settings for Extension Building
#compile_args = sysconfig.get_config_var('CFLAGS').split()
compile_args=["-std=c++11"]#+compile_args
if sys.platform == 'darwin':
compile_args+=["-mmacosx-version-min=10.9"]
extension = Extension('_fasttrips',
sources=['src/fasttrips.cpp',
'src/hyperlink.cpp',
'src/access_egress.cpp',
'src/path.cpp',
'src/pathfinder.cpp',
],
extra_compile_args = compile_args,
include_dirs=[numpy.get_include()],
)
setup(name = 'fasttrips',
version = '1.0b2',
author = 'MTC, SFCTA & PSRC',
author_email = '[email protected]',
description = 'Dynamic Transit Assignment Model. Given a transit network and a list of transit demand, finds a pathset and chooses a path for each traveler.',
long_description_content_type='text/markdown',
long_description=long_description,
packages = ['fasttrips'],
url = 'http://fast-trips.mtc.ca.gov/',
license = 'Apache',
classifiers = [# How mature is this project?
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Other Audience',
'Topic :: Scientific/Engineering',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: Apache Software License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'],
keywords = 'transit model dynamic passenger assignment simulation',
install_requires = ['functools32;python_version<="2.7"',
'numpy>=1.15',
'pandas==0.22',
'partridge==0.6.0.dev1',
'future',
'configparser',
'psutil',
'pytest'],
package_dir = { 'fasttrips':'fasttrips' },
package_data = { 'fasttrips':['Examples/*',
'tests/*.py'] },
entry_points = { 'console_scripts': ['run_fasttrips=fasttrips.Run:main']},
scripts = [ 'scripts/create_tableau_path_map.py',
'scripts/run_example.py'],
ext_modules = [extension]
)