~ubuntu-branches/ubuntu/wily/python-ipaddr/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-05-16 21:44:51 UTC
  • mfrom: (1.4.8 sid)
  • Revision ID: package-import@ubuntu.com-20140516214451-hiuevwvlojtf9sbz
Tags: 2.1.11-2
* Drop python3-ipaddr binary since ipaddr is incorporated in python3.3 and
  later as ipaddress and nothing in the archive needs python3-ipaddr
  - Remove binary from debian/control
  - Drop python3 build-depends and X-Python3-Version from debian/control
  - Simplify debian/rules to build for only python2.7
  - Remove python3-ipaddr.docs
* Explicitly depend on dh-python to get the updated version

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# -*- makefile -*-
3
3
 
4
4
%:
5
 
        dh $@ --with python2,python3
 
5
        dh $@ --with python2
6
6
 
7
 
override_dh_auto_install:
8
 
        set -e && for pyvers in $(shell pyversions -vr); do \
9
 
                python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
10
 
                        --root $(CURDIR)/debian/python-ipaddr; \
11
 
                python$$pyvers $(CURDIR)/ipaddr_test.py; \
12
 
        done
13
 
        2to3 -w $(CURDIR)/ipaddr.py
14
 
        2to3 -w $(CURDIR)/ipaddr_test.py
15
 
        set -e && for pyvers in $(shell py3versions -sv); do \
16
 
                python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
17
 
                        --root $(CURDIR)/debian/python3-ipaddr; \
18
 
                python$$pyvers $(CURDIR)/ipaddr_test.py; \
19
 
        done
20
 
        mv $(CURDIR)/ipaddr.py.bak $(CURDIR)/ipaddr.py
21
 
        mv $(CURDIR)/ipaddr_test.py.bak $(CURDIR)/ipaddr_test.py
 
7
override_dh_auto_test:
 
8
        python $(CURDIR)/ipaddr_test.py
22
9
 
23
10
override_dh_installdocs:
24
11
        cp $(CURDIR)/RELEASENOTES $(CURDIR)/changelog
28
15
override_dh_auto_clean:
29
16
        rm -rf $(CURDIR)/ipaddr.pyc
30
17
        rm -rf $(CURDIR)/build
31
 
        rm -rf $(CURDIR)/__pycache__
32
18
        dh_clean