Skip to content

Commit 82b5b71

Browse files
committed
Merge pull request #756 from hashdist/cekees/add_rtree
adding rtree plus libspatialindex dependency
2 parents 35dc43b + 2fb6386 commit 82b5b71

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

pkgs/libspatialindex.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extends: [autotools_package]
2+
3+
sources:
4+
- key: tar.bz2:tzl3a7gnmszjicwee44tqluejetrn4mg
5+
url: http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.1.tar.bz2

pkgs/rtree.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
extends: [setuptools_package]
2+
dependencies:
3+
build: [libspatialindex]
4+
run: [libspatialindex]
5+
6+
# rtree currently looks for libspatialindex using CDLL, which doesn't know how to do a local search...
7+
# note, this is a decent build-time hack, but will require another hack to make this build relocatable.
8+
build_stages:
9+
- name: patch_library_path
10+
before: install
11+
handler: bash
12+
bash: |
13+
sed -i -e "s|CDLL(lib_name)|CDLL('${LIBSPATIALINDEX_DIR}/lib/'+lib_name)|g" rtree/core.py
14+
15+
sources:
16+
- key: tar.gz:z6kqsl4g4znjefsflhsu6cbegpon6g6t
17+
url: https://pypi.python.org/packages/source/R/Rtree/Rtree-0.7.0.tar.gz

0 commit comments

Comments
 (0)