|
75 | 75 | else: |
76 | 76 | EXTRA_COMPILE_ARGS = [ |
77 | 77 | '-w', |
| 78 | + '-std=c++14', |
78 | 79 | '-fvisibility=hidden', |
79 | 80 | '-D__USE_PTHREAD__' # use pthread!!! on *nix |
80 | 81 | ] |
81 | | - if OS_NAME == 'osx': |
82 | | - EXTRA_COMPILE_ARGS += [ |
83 | | - ] |
84 | | - |
85 | | - |
86 | 82 |
|
87 | 83 | ########################################################### |
88 | 84 | # Link args |
|
109 | 105 | BOOST_ARC = 'x32' if OS_NAME == 'win32' else 'x64' |
110 | 106 | pyversion = sys.version[:3] |
111 | 107 | MSVC_VER = '' |
112 | | - BOOST_VER = '1_69' |
113 | | - if pyversion in ['2.6', '2.7', '3.0', '3.1', '3.2']: |
114 | | - MSVC_VER = 'vc90' |
115 | | - elif pyversion in ['3.3', '3.4']: |
116 | | - MSVC_VER = 'vc100' |
117 | | - elif pyversion in ['3.5', '3.6', '3.7', '3.8', '3.9']: |
| 108 | + BOOST_VER = '1_75' |
| 109 | + if pyversion in ['3.5']: |
| 110 | + MSVC_VER = 'vc140' |
| 111 | + elif pyversion in ['3.6', '3.7', '3.8']: |
118 | 112 | MSVC_VER = 'vc141' |
| 113 | + elif pyversion in ['3.9']: |
| 114 | + MSVC_VER = 'vc142' |
119 | 115 |
|
120 | 116 |
|
121 | 117 | EXTRA_OBJECTS = [ |
|
141 | 137 | './' + LIBGEODA_SRC + '/GenGeomAlgs.cpp', |
142 | 138 | './' + LIBGEODA_SRC + '/GenUtils.cpp', |
143 | 139 | './' + LIBGEODA_SRC + '/SpatialIndAlgs.cpp', |
144 | | - './' + LIBGEODA_SRC + '/pg/geoms.c', |
145 | | - './' + LIBGEODA_SRC + '/pg/utils.c', |
146 | | - './' + LIBGEODA_SRC + '/shapelib/shpopen.c', |
147 | | - './' + LIBGEODA_SRC + '/shapelib/dbfopen.c', |
148 | | - './' + LIBGEODA_SRC + '/shapelib/safileio.c', |
| 140 | + './' + LIBGEODA_SRC + '/pg/geoms.cpp', |
| 141 | + './' + LIBGEODA_SRC + '/pg/utils.cpp', |
| 142 | + './' + LIBGEODA_SRC + '/shapelib/shpopen.cpp', |
| 143 | + './' + LIBGEODA_SRC + '/shapelib/dbfopen.cpp', |
| 144 | + './' + LIBGEODA_SRC + '/shapelib/safileio.cpp', |
149 | 145 | './' + LIBGEODA_SRC + '/weights/PointsToContigWeights.cpp', |
150 | 146 | './' + LIBGEODA_SRC + '/weights/PolysToContigWeights.cpp', |
151 | 147 | './' + LIBGEODA_SRC + '/weights/GalWeight.cpp', |
|
206 | 202 | extra_objects=EXTRA_OBJECTS),] |
207 | 203 |
|
208 | 204 | setup (name = 'pygeoda', |
209 | | - version = '0.0.7.1', |
| 205 | + version = '0.0.8', |
210 | 206 | author = "Xun Li", |
211 | 207 | author_email = "[email protected]", |
212 | 208 | url = "https://github.com/geodacenter/pygeoda", |
213 | 209 | description = """pygeoda is a python library for spatial data analysis based on GeoDa and libgeoda.""", |
214 | 210 | ext_modules = extensions, |
215 | 211 | package_data = package_data, |
216 | | - #cmdclass = {"develop": update_submodules}, |
217 | 212 | include_package_data = include_package_data, |
218 | 213 | packages=['pygeoda','pygeoda.weights','pygeoda.sa','pygeoda.clustering', 'pygeoda.classify', 'pygeoda.data'] |
219 | 214 | ) |
|
0 commit comments