-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake_osx.sh
executable file
·44 lines (23 loc) · 967 Bytes
/
make_osx.sh
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
#!/bin/sh
# This script is for building the Python 2.7/3.6 versions of
# the SpatialIndex wheels for Mac OSX. It assumes you have already
# installed 'python2' and 'python3' and have 'Cython', 'jinja2'
# and 'wheel' installed as Python packages in both.
# If our OSX version has gotten ahead of the version used to
# build Cython, we can get a bunch of version mismatch warning
# messages from the loader. This can be avoided with the following:
export MACOSX_DEPLOYMENT_TARGET=10.9
make clean
make
# Python 2.7
rm -rf build dist SpatialIndex.egg-info SpatialIndex/__pycache__
python2.7 setup.py build bdist_wheel
# Python 3.6
rm -rf build SpatialIndex.egg-info SpatialIndex/__pycache__
python3.6 setup.py build bdist_wheel
# Python 3.7
rm -rf build SpatialIndex.egg-info SpatialIndex/__pycache__
python3.7 setup.py build bdist_wheel
# Python 3.8
rm -rf build SpatialIndex.egg-info SpatialIndex/__pycache__
python3.8 setup.py build bdist_wheel