~ubuntu-branches/debian/jessie/subunit/jessie

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-08 21:44:01 UTC
  • mfrom: (1.1.7) (3.2.9 sid)
  • Revision ID: package-import@ubuntu.com-20120408214401-qnlep262829yi55l
Tags: 0.0.7+bzr162-1
* New upstream snapshot.
 + Fixes compatibility with current versions of testtools. Closes: #669491
* Support installation for multiple python versions.
* Include egg-info for python-subunit. LP: #893620
* Add python3-subunit package.
* Bump standards version to 3.9.3 (no changes).
* Use machine parseable format for copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
3
# Get the supported Python versions
4
 
PYVERS = $(shell pyversions -r -v)
5
 
# Get the default Python version
6
 
PYVERSION = $(shell pyversions -d -v)
 
4
PYVERS = $(shell pyversions -vr)
 
5
PY3VERS = $(shell py3versions -vr)
7
6
 
8
7
export INSTALLDIRS=vendor
9
8
 
13
12
 
14
13
override_dh_auto_clean:
15
14
        $(MAKE) distclean || true
 
15
        rm -rf build
16
16
        rm -f configure
17
17
 
18
18
override_dh_auto_install:
21
21
        find debian/tmp/ -name "*.pyo" | xargs rm -f
22
22
        mkdir debian/tmp/usr/share
23
23
        mv debian/tmp/usr/lib/perl5 debian/tmp/usr/share/perl5
 
24
        for vers in $(PY3VERS); do \
 
25
                python$$vers setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp; \
 
26
        done
 
27
        for vers in $(PYVERS); do \
 
28
                python$$vers setup.py install --install-layout=deb --single-version-externally-managed --root=$(CURDIR)/debian/tmp; \
 
29
        done
24
30
 
25
31
%:
26
 
        dh $* --with python2
 
32
        dh $* --with python2,python3