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
|
PYTHON ?= python
TEST_COMMAND = $(PYTHON) test
STORM_POSTGRES_URI = postgres:storm_test
STORM_POSTGRES_HOST_URI = postgres://localhost/storm_test
STORM_MYSQL_URI = mysql:storm_test
STORM_MYSQL_HOST_URI = mysql://localhost/storm_test
export STORM_POSTGRES_URI
export STORM_POSTGRES_HOST_URI
export STORM_MYSQL_URI
export STORM_MYSQL_HOST_URI
all: build
build:
$(PYTHON) setup.py build_ext -i
check: build
# Run the tests once with cextensions and once without them.
$(TEST_COMMAND) && STORM_CEXTENSIONS=1 $(TEST_COMMAND)
clean:
rm -rf build
find . -name "*.so" -type f -exec rm -f {} \;
find . -name "*.pyc" -type f -exec rm -f {} \;
find . -name "*~" -type f -exec rm -f {} \;
.PHONY: all build test
|