mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 05:53:12 +00:00
Makefile: parameterize 'trial' and 'python' to enable a python2.5 builder
This commit is contained in:
parent
fb134d82f9
commit
56604200a7
18
Makefile
18
Makefile
@ -2,18 +2,19 @@
|
|||||||
default: build
|
default: build
|
||||||
|
|
||||||
BASE=$(shell pwd)
|
BASE=$(shell pwd)
|
||||||
|
PYTHON=python
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: build-pyfec build-Crypto
|
build: build-pyfec build-Crypto
|
||||||
python setup.py install --prefix=$(BASE)/instdir
|
$(PYTHON) setup.py install --prefix=$(BASE)/instdir
|
||||||
|
|
||||||
build-pyfec:
|
build-pyfec:
|
||||||
cd src/pyfec && python ./setup.py install --prefix=$(BASE)/instdir
|
cd src/pyfec && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
|
||||||
|
|
||||||
build-Crypto:
|
build-Crypto:
|
||||||
cd src/Crypto && python ./setup.py install --prefix=$(BASE)/instdir
|
cd src/Crypto && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
|
||||||
|
|
||||||
INSTDIR=$(PWD)/instdir/lib/python$(shell python -c 'import sys;print sys.version_info[0]').$(shell python -c 'import sys;print sys.version_info[1]')/site-packages
|
INSTDIR=$(PWD)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
|
||||||
|
|
||||||
ifneq ($(PYTHONPATH),)
|
ifneq ($(PYTHONPATH),)
|
||||||
PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
|
PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
|
||||||
@ -35,26 +36,27 @@ run-client3:
|
|||||||
cd client-basedir3 && PYTHONPATH=.. twistd -noy ../client.tac
|
cd client-basedir3 && PYTHONPATH=.. twistd -noy ../client.tac
|
||||||
|
|
||||||
|
|
||||||
|
TRIAL=trial
|
||||||
TEST=allmydata
|
TEST=allmydata
|
||||||
REPORTER=
|
REPORTER=
|
||||||
|
|
||||||
# use 'make test REPORTER=--reporter=bwverbose' from buildbot, to supress the
|
# use 'make test REPORTER=--reporter=bwverbose' from buildbot, to supress the
|
||||||
# ansi color sequences
|
# ansi color sequences
|
||||||
test: build
|
test: build
|
||||||
$(PP) trial $(REPORTER) $(TEST)
|
$(PP) $(TRIAL) $(REPORTER) $(TEST)
|
||||||
|
|
||||||
test-figleaf: build
|
test-figleaf: build
|
||||||
rm -f .figleaf
|
rm -f .figleaf
|
||||||
$(PP) trial --reporter=bwverbose-figleaf $(TEST)
|
$(PP) $(TRIAL) --reporter=bwverbose-figleaf $(TEST)
|
||||||
|
|
||||||
figleaf-output:
|
figleaf-output:
|
||||||
$(PP) python misc/figleaf2html -d coverage-html -r `python ./builddir.py`
|
$(PP) $(PYTHON) misc/figleaf2html -d coverage-html -r `$(PYTHON) ./builddir.py`
|
||||||
@echo "now point your browser at coverage-html/index.html"
|
@echo "now point your browser at coverage-html/index.html"
|
||||||
# after doing test-figleaf and figleaf-output, point your browser at
|
# after doing test-figleaf and figleaf-output, point your browser at
|
||||||
# coverage-html/index.html
|
# coverage-html/index.html
|
||||||
|
|
||||||
.figleaf.el: .figleaf
|
.figleaf.el: .figleaf
|
||||||
$(PP) python misc/figleaf2el.py .figleaf `python ./builddir.py`
|
$(PP) $(PYTHON) misc/figleaf2el.py .figleaf `$(PYTHON) ./builddir.py`
|
||||||
|
|
||||||
pyflakes:
|
pyflakes:
|
||||||
pyflakes src/allmydata
|
pyflakes src/allmydata
|
||||||
|
Loading…
Reference in New Issue
Block a user