equal
deleted
inserted
replaced
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 |