gdal: remove python@2

This commit is contained in:
FX Coudert 2019-09-01 00:42:46 +02:00
parent 342ab87c92
commit 017b4c0cc0

View file

@ -3,6 +3,7 @@ class Gdal < Formula
homepage "https://www.gdal.org/" homepage "https://www.gdal.org/"
url "https://download.osgeo.org/gdal/2.4.2/gdal-2.4.2.tar.xz" url "https://download.osgeo.org/gdal/2.4.2/gdal-2.4.2.tar.xz"
sha256 "dcc132e469c5eb76fa4aaff238d32e45a5d947dc5b6c801a123b70045b618e0c" sha256 "dcc132e469c5eb76fa4aaff238d32e45a5d947dc5b6c801a123b70045b618e0c"
revision 1
bottle do bottle do
rebuild 1 rebuild 1
@ -39,7 +40,6 @@ class Gdal < Formula
depends_on "poppler" depends_on "poppler"
depends_on "proj" depends_on "proj"
depends_on "python" depends_on "python"
depends_on "python@2"
depends_on "sqlite" # To ensure compatibility with SpatiaLite depends_on "sqlite" # To ensure compatibility with SpatiaLite
depends_on "unixodbc" # macOS version is not complete enough depends_on "unixodbc" # macOS version is not complete enough
depends_on "webp" depends_on "webp"
@ -143,7 +143,6 @@ class Gdal < Formula
# Build Python bindings # Build Python bindings
cd "swig/python" do cd "swig/python" do
system "python3", *Language::Python.setup_install_args(prefix) system "python3", *Language::Python.setup_install_args(prefix)
system "python2", *Language::Python.setup_install_args(prefix)
end end
bin.install Dir["swig/python/scripts/*.py"] bin.install Dir["swig/python/scripts/*.py"]
@ -159,6 +158,5 @@ class Gdal < Formula
system "#{bin}/gdalinfo", "--formats" system "#{bin}/gdalinfo", "--formats"
system "#{bin}/ogrinfo", "--formats" system "#{bin}/ogrinfo", "--formats"
system "python3", "-c", "import gdal" system "python3", "-c", "import gdal"
system "python2", "-c", "import gdal"
end end
end end