Makefile.python: try curl if wget fails
authorAugie Fackler <augie@google.com>
Tue, 13 Jan 2015 14:15:08 -0500
changeset 23824 e278fc8bb0c3
parent 23823 bd72e75f09e7
child 23825 b2358bc1407c
Makefile.python: try curl if wget fails Macs ship with curl and not wget, so this is a nice little tweak for folks testing on OS X.
contrib/Makefile.python
--- a/contrib/Makefile.python	Tue Jan 13 15:15:37 2015 -0500
+++ b/contrib/Makefile.python	Tue Jan 13 14:15:08 2015 -0500
@@ -44,7 +44,7 @@
 PYTHON_SRCFILE=$(PYTHON_SRCDIR).tgz
 
 $(PREFIX)/bin/python:
-	[ -f $(PYTHON_SRCFILE) ] || wget http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || [ -f $(PYTHON_SRCFILE) ]
+	[ -f $(PYTHON_SRCFILE) ] || wget http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || curl -OL http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || [ -f $(PYTHON_SRCFILE) ]
 	rm -rf $(PYTHON_SRCDIR)
 	tar xf $(PYTHON_SRCFILE)
 	# Ubuntu disables SSLv2 the hard way, disable it on old Pythons too