aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-09-11 09:17:49 -0700
committerCharlie Sharpsteen2011-09-11 09:44:49 -0700
commitfd910a60d9849236371f82404e4dfa32ef834fac (patch)
tree8ad1dfc9f634536a63671a77ff86363728d16ca5
parent9a25b0554cbb874fe250c9af266d6b088b83bbda (diff)
downloadhomebrew-fd910a60d9849236371f82404e4dfa32ef834fac.tar.bz2
GDAL: Depend on Numpy for Python bindings
Without Numpy, the Python bindings can't deal with Raster data very well which pretty much hoses half of the GDAL functionality.
-rw-r--r--Library/Formula/gdal.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb
index 34105b45b..db12c7e6a 100644
--- a/Library/Formula/gdal.rb
+++ b/Library/Formula/gdal.rb
@@ -35,6 +35,9 @@ class Gdal < Formula
depends_on "postgresql" if postgres?
depends_on "mysql" if mysql?
+ # Without Numpy, the Python bindings can't deal with raster data.
+ depends_on 'numpy' => :python unless no_python?
+
if complete?
# Raster libraries
depends_on "netcdf" # Also brings in HDF5