diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-07-09 09:03:36 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-07-09 09:03:36 +0200 |
commit | 9f7f7386c7fe49b249f6dd8c558266ce65e407dd (patch) | |
tree | caa07112b88c6d6b044bf3172f7907d1bd65cdd9 /Makefile | |
parent | a45bb607c2d3900b9151fa0bc45d97f7c28e736b (diff) | |
download | immutables-debian-upstream.tar.gz immutables-debian-upstream.zip |
New upstream version 0.18debian-upstream
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..481d190 --- /dev/null +++ b/Makefile @@ -0,0 +1,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) -m pytest -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 |