~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to debian/rules

Merge mutable-variables-flush-leak [r=jkakar,jukart]

Remove a leak when mutable variables (ListVariable or PickleVariable instances) are
collected before store.flush, leaving hooks behind them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
dist_release := $(shell lsb_release -cs)
 
4
ifneq ($(dist_release),dapper)
 
5
  use_pycentral = yes
 
6
endif
 
7
 
 
8
package = python-storm
 
9
root_dir = debian/$(package)
 
10
 
 
11
build: build-stamp
 
12
build-stamp:
 
13
        dh_testdir
 
14
 
 
15
ifeq ($(use_pycentral),yes)
 
16
        for python_version in `pyversions -r`; \
 
17
                do $${python_version} setup.py build; \
 
18
        done
 
19
else
 
20
        python setup.py build
 
21
endif
 
22
        touch build-stamp
 
23
 
 
24
clean:
 
25
        dh_testdir
 
26
        dh_testroot
 
27
        rm -f build-stamp
 
28
        rm -rf build
 
29
        dh_clean
 
30
 
 
31
install: build
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_clean -k
 
35
 
 
36
ifeq ($(use_pycentral),yes)
 
37
        for python_version in `pyversions -r`; \
 
38
                do $${python_version} setup.py install --root $(root_dir); \
 
39
        done
 
40
else
 
41
        python setup.py install --root $(root_dir)
 
42
endif
 
43
 
 
44
binary-indep: build install
 
45
 
 
46
binary-arch: build install
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_installdocs
 
50
        dh_installchangelogs
 
51
        dh_installinit
 
52
        dh_installdebconf
 
53
        dh_installlogrotate
 
54
        dh_compress
 
55
        dh_fixperms
 
56
 
 
57
ifeq ($(use_pycentral),yes)
 
58
        DH_PYCENTRAL=nomove dh_pycentral
 
59
else
 
60
        dh_python
 
61
endif
 
62
        dh_installdeb
 
63
        dh_gencontrol
 
64
        dh_md5sums
 
65
        dh_builddeb
 
66
 
 
67
binary: binary-indep binary-arch
 
68
 
 
69
.PHONY: binary binary-arch binary-indep clean