File: build-wheels.sh

package info (click to toggle)
python-shapely 1.5.17-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,208 kB
  • ctags: 1,572
  • sloc: python: 8,379; makefile: 101; sh: 17
file content (21 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# Automation of this is a TODO. For now, it depends on manually built libraries
# as detailed in https://gist.github.com/sgillies/a8a2fb910a98a8566d0a.

export MACOSX_DEPLOYMENT_TARGET=10.6
export GEOS_CONFIG="/usr/local/bin/geos-config"

VERSION=$1

source $HOME/envs/pydotorg27/bin/activate
touch shapely/speedups/*.pyx
touch shapely/vectorized/*.pyx
CFLAGS="`$GEOS_CONFIG --cflags`" LDFLAGS="`$GEOS_CONFIG --libs`" python setup.py bdist_wheel -d wheels/$VERSION
source $HOME/envs/pydotorg34/bin/activate
touch shapely/speedups/*.pyx
touch shapely/vectorized/*.pyx
CFLAGS="`$GEOS_CONFIG --cflags`" LDFLAGS="`$GEOS_CONFIG --libs`" python setup.py bdist_wheel -d wheels/$VERSION

parallel delocate-wheel -w fixed_wheels/$VERSION --require-archs=intel -v {} ::: wheels/$VERSION/*.whl
parallel cp {} {.}.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl ::: fixed_wheels/$VERSION/*.whl