contrib/Makefile.python
changeset 26735 ec74ea542201
parent 26734 b000d34f863f
child 27230 9f8b8c4e5076
equal deleted inserted replaced
26734:b000d34f863f 26735:ec74ea542201
     1 PYTHONVER=2.7.9
     1 PYTHONVER=2.7.10
     2 PYTHONNAME=python-
     2 PYTHONNAME=python-
     3 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
     3 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
     4 SYMLINKDIR=$(HOME)/bin
     4 SYMLINKDIR=$(HOME)/bin
     5 
     5 
     6 help:
     6 help:
    15 	@echo 'Common make targets:'
    15 	@echo 'Common make targets:'
    16 	@echo '  python    - install Python $$PYTHONVER in $$PREFIX'
    16 	@echo '  python    - install Python $$PYTHONVER in $$PREFIX'
    17 	@echo '  symlink   - create a $$SYMLINKDIR/$(PYTHONNAME)$$PYTHONVER symlink'
    17 	@echo '  symlink   - create a $$SYMLINKDIR/$(PYTHONNAME)$$PYTHONVER symlink'
    18 	@echo
    18 	@echo
    19 	@echo 'Example: create a temporary Python installation:'
    19 	@echo 'Example: create a temporary Python installation:'
    20 	@echo '  $$ make -f Makefile.python python PYTHONVER=2.6 PREFIX=/tmp/p26'
    20 	@echo '  $$ make -f Makefile.python python PYTHONVER=${PYTHONVER} PREFIX=/tmp/p27'
    21 	@echo '  $$ /tmp/p26/bin/python -V'
    21 	@echo '  $$ /tmp/p27/bin/python -V'
    22 	@echo '  Python 2.6'
    22 	@echo '  Python 2.7'
    23 	@echo
    23 	@echo
    24 	@echo 'Some external libraries are required for building Python: zlib bzip2 openssl.'
    24 	@echo 'Some external libraries are required for building Python: zlib bzip2 openssl.'
    25 	@echo 'Make sure their development packages are installed systemwide.'
    25 	@echo 'Make sure their development packages are installed systemwide.'
    26 # fedora: yum install zlib-devel bzip2-devel openssl-devel
    26 # fedora: yum install zlib-devel bzip2-devel openssl-devel
    27 # debian: apt-get install zlib1g-dev libbz2-dev libssl-dev
    27 # debian: apt-get install zlib1g-dev libbz2-dev libssl-dev
    28 	@echo
    28 	@echo
    29 	@echo 'To build a nice collection of interesting Python versions:'
    29 	@echo 'To build a nice collection of interesting Python versions:'
    30 	@echo '  $$ for v in 2.{6{,.1,.2,.9},7{,.8,.9}}; do'
    30 	@echo '  $$ for v in 2.{6{,.1,.2,.9},7{,.8,.10}}; do'
    31 	@echo '    make -f Makefile.python symlink PYTHONVER=$$v || break; done'
    31 	@echo '    make -f Makefile.python symlink PYTHONVER=$$v || break; done'
    32 	@echo 'To run a Mercurial test on all these Python versions:'
    32 	@echo 'To run a Mercurial test on all these Python versions:'
    33 	@echo '  $$ for py in `cd ~/bin && ls $(PYTHONNAME)2.*`; do'
    33 	@echo '  $$ for py in `cd ~/bin && ls $(PYTHONNAME)2.*`; do'
    34 	@echo '    echo $$py; $$py run-tests.py test-http.t; echo; done'
    34 	@echo '    echo $$py; $$py run-tests.py test-http.t; echo; done'
    35 	@echo
    35 	@echo