aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d22a8595141db5eeaa91cf69e1d17376e239e9ee (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: rtest build test clean all


PYTHON ?= python
ROOT = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))


all: build

build:
	$(PYTHON) setup.py build_ext --inplace

debug:
	DEBUG_IMMUTABLES=1 $(PYTHON) setup.py build_ext --inplace

test:
	$(PYTHON) setup.py test -v

rtest:
	~/dev/venvs/36-debug/bin/python setup.py build_ext --inplace

	env PYTHONPATH=. \
		~/dev/venvs/36-debug/bin/python -m test.regrtest -R3:3 --testdir tests/

clean:
	find . -name '*.pyc' | xargs rm -f
	find . -name '*.so' | xargs rm -f
	rm -rf ./build
	rm -rf ./dist
	rm -rf ./*.egg-info

testinstalled:
	cd /tmp && $(PYTHON) $(ROOT)/tests/__init__.py