Mercurial > hg
comparison contrib/Makefile.python @ 23824:e278fc8bb0c3
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.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Jan 2015 14:15:08 -0500 |
parents | fbd79c2552a6 |
children | c0c4713c3010 |
comparison
equal
deleted
inserted
replaced
23823:bd72e75f09e7 | 23824:e278fc8bb0c3 |
---|---|
42 | 42 |
43 PYTHON_SRCDIR=Python-$(PYTHONVER) | 43 PYTHON_SRCDIR=Python-$(PYTHONVER) |
44 PYTHON_SRCFILE=$(PYTHON_SRCDIR).tgz | 44 PYTHON_SRCFILE=$(PYTHON_SRCDIR).tgz |
45 | 45 |
46 $(PREFIX)/bin/python: | 46 $(PREFIX)/bin/python: |
47 [ -f $(PYTHON_SRCFILE) ] || wget http://www.python.org/ftp/python/$(PYTHONVER)/$(PYTHON_SRCFILE) || [ -f $(PYTHON_SRCFILE) ] | 47 [ -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) ] |
48 rm -rf $(PYTHON_SRCDIR) | 48 rm -rf $(PYTHON_SRCDIR) |
49 tar xf $(PYTHON_SRCFILE) | 49 tar xf $(PYTHON_SRCFILE) |
50 # Ubuntu disables SSLv2 the hard way, disable it on old Pythons too | 50 # Ubuntu disables SSLv2 the hard way, disable it on old Pythons too |
51 -sed -i 's,self.*SSLv2_method(),0;//\0,g' $(PYTHON_SRCDIR)/Modules/_ssl.c | 51 -sed -i 's,self.*SSLv2_method(),0;//\0,g' $(PYTHON_SRCDIR)/Modules/_ssl.c |
52 # Find multiarch system libraries on Ubuntu with Python 2.4.x | 52 # Find multiarch system libraries on Ubuntu with Python 2.4.x |