From ae3a1e70ec69f64cfe1700c6784b4bd645b6be43 Mon Sep 17 00:00:00 2001 From: Aron Ahmadia Date: Tue, 24 Mar 2015 17:24:50 -0400 Subject: [PATCH] Add Shapely (Development branch) We can't use a release since we need https://github.com/Toblerity/Shapely/pull/241 This also requires: https://github.com/hashdist/hashdist/commit/d3a39c57 --- pkgs/geos.yaml | 4 ++++ pkgs/shapely.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/shapely.yaml diff --git a/pkgs/geos.yaml b/pkgs/geos.yaml index ecbdd977c..e41b26ef6 100644 --- a/pkgs/geos.yaml +++ b/pkgs/geos.yaml @@ -3,3 +3,7 @@ extends: [autotools_package] sources: - url: http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 key: tar.bz2:cxul7x36feehvfl3k2wfipvjvabscsa4 + +when_build_dependency: + - prepend_path: PATH + value: '${ARTIFACT}/bin' diff --git a/pkgs/shapely.yaml b/pkgs/shapely.yaml new file mode 100644 index 000000000..a28479bc3 --- /dev/null +++ b/pkgs/shapely.yaml @@ -0,0 +1,16 @@ +extends: [distutils_package] +dependencies: + build: [geos] + run: [geos] + +sources: +- key: git:76f5832e8df80ed86493fb4eb7a0cd7a17976822 + url: git@github.com:Toblerity/Shapely.git + +build_stages: +- name: check + after: install + handler: bash + bash: | + ${PYTHON} -c "from shapely import geos" +