forked from Craig-Robson/OpenUDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (71 loc) · 1.99 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
75
76
77
from setuptools import Extension, setup
from glob import glob
sources = glob('openudm/*.cpp') + glob('openudm/*.i')
py_modules = ['CellularModel', 'RasterToolkit', 'MultiCriteriaEval', 'DevZones']
cxxflags = ['-Wall', '-std=c++11', '-Werror', '-pedantic']
headers = glob('openudm/*.h')
ext_modules = [
Extension(
'openudm._CellularModel',
extra_compile_args = cxxflags,
sources=[
'openudm/CellularModel.i',
'openudm/CellularModel.cpp',
# list anything included (may be a better way?)
'openudm/CSVToolkit.cpp',
'openudm/Raster.cpp',
'openudm/UDMCell.cpp',
'openudm/UDMWard.cpp',
'openudm/UDMZone.cpp',
],
depends=headers,
swig_opts=['-c++']
),
Extension(
'openudm._DevZones',
extra_compile_args = cxxflags,
sources=[
'openudm/DevZones.i',
'openudm/DevZones.cpp',
# list includes
'openudm/CSVToolkit.cpp',
'openudm/Raster.cpp',
],
depends=headers,
swig_opts=['-c++']
),
Extension(
'openudm._MultiCriteriaEval',
extra_compile_args = cxxflags,
sources=[
'openudm/MultiCriteriaEval.i',
'openudm/MultiCriteriaEval.cpp',
# list includes
'openudm/CSVToolkit.cpp',
'openudm/Raster.cpp',
],
depends=headers,
swig_opts=['-c++']
),
Extension(
'openudm._RasterToolkit',
extra_compile_args = cxxflags,
sources=[
'openudm/RasterToolkit.i',
'openudm/RasterToolkit.cpp',
# list includes
'openudm/CSVToolkit.cpp',
'openudm/Raster.cpp',
],
depends=headers,
swig_opts=['-c++']
)
]
setup(
name='openudm',
version='1.0.0',
author='James Virgo',
description='Urban Development Model',
packages=['openudm'],
ext_modules=ext_modules
)