~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gustavo Niemeyer
  • Date: 2008-06-26 11:57:22 UTC
  • mfrom: (235.2.24 need-for-speed-revenge)
  • Revision ID: gustavo@niemeyer.net-20080626115722-ekl4af6sx2pn08d0
Merging need-for-speed-revenge branch [a=niemeyer,jamesh,radix]
[r=jamesh,therve]

This branch introduces a number of fixes, optimizations, and extensions
on the cextensions module, with speedup purposes.  The module is now
built by default, but still disabled unless the STORM_CEXTENSIONS=1
environment variable is defined.

Besides these, Chris also provided a mechanism to cache ClassAliases,
to prevent the cost of rebuilding the ClassInfo for each alias.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PYTHON = python$(PYTHON_VERSION)
2
 
PYTHON_VERSION = 2.4
3
 
TESTDB = storm_test
4
 
 
5
 
all:
6
 
        @:
7
 
 
8
 
check:
9
 
        @echo "* Creating $(TESTDB)"
10
 
        @if psql -l | grep -q " $(TESTDB) "; then \
11
 
            dropdb $(TESTDB) >/dev/null; \
12
 
        fi
13
 
        createdb $(TESTDB)
14
 
        STORM_POSTGRES_URI=postgres:$(TESTDB) $(PYTHON) test --verbose
15
 
 
16
 
.PHONY: all check
 
1
PYTHON = python
 
2
 
 
3
TEST_COMMAND = $(PYTHON) test
 
4
 
 
5
STORM_POSTGRES_URI = postgres:storm_test
 
6
STORM_POSTGRES_HOST_URI = postgres://localhost/storm_test
 
7
STORM_MYSQL_URI = mysql:storm_test
 
8
STORM_MYSQL_HOST_URI = mysql://localhost/storm_test
 
9
 
 
10
export STORM_POSTGRES_URI
 
11
export STORM_POSTGRES_HOST_URI
 
12
export STORM_MYSQL_URI
 
13
export STORM_MYSQL_HOST_URI
 
14
 
 
15
all: build
 
16
 
 
17
build:
 
18
        $(PYTHON) setup.py build_ext -i
 
19
 
 
20
check: build
 
21
        # Run the tests once with cextensions and once without them.
 
22
        $(TEST_COMMAND) && STORM_CEXTENSIONS=1 $(TEST_COMMAND)
 
23
 
 
24
.PHONY: all build test