~ubuntu-branches/ubuntu/trusty/python-pbkdf2/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-01-12 21:34:30 UTC
  • Revision ID: package-import@ubuntu.com-20130112213430-dfwqwnrikilttfi0
Tags: 1.3+20110613.git2a0fb15~ds0-1
Initial release. (Closes: #698015)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export REPACK_SH=$(CURDIR)/debian/repack.sh
 
4
 
 
5
PYTHON2=$(shell pyversions -vr)
 
6
PYTHON3=$(shell py3versions -vr)
 
7
 
 
8
%:
 
9
        dh $@ --with python2,python3
 
10
 
 
11
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 
12
test-python%:
 
13
        python$* setup.py test -vv
 
14
 
 
15
override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
 
16
endif
 
17
 
 
18
build-python%:
 
19
        python$* setup.py build
 
20
 
 
21
override_dh_auto_build: $(PYTHON3:%=build-python%)
 
22
        dh_auto_build
 
23
 
 
24
install-python%:
 
25
        python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
 
26
 
 
27
override_dh_auto_install: $(PYTHON3:%=install-python%)
 
28
        dh_auto_install
 
29
 
 
30
override_dh_auto_clean:
 
31
        dh_auto_clean
 
32
        rm -rf build
 
33
        rm -rf *.egg-info
 
34
 
 
35
get-orig-source:
 
36
        uscan --force-download