~ubuntu-branches/ubuntu/trusty/python-stem/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Ulises Vitulli
  • Date: 2013-01-10 16:06:33 UTC
  • Revision ID: package-import@ubuntu.com-20130110160633-cfy8l9yuvq5ikesh
Tags: 1.0.1-1
Initial release (Closes: #697880) (Fixes upstream Trac#7906).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
#
 
4
#  # Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
PYVERS :=  python2.7
 
8
PY3VERS :=  $(shell py3versions -s)
 
9
 
 
10
 
 
11
%:
 
12
                dh $@ --with python2,python3
 
13
 
 
14
override_dh_installchangelogs:
 
15
                dh_installchangelogs debian/ChangeLog
 
16
 
 
17
override_dh_auto_install:
 
18
        dh_auto_install
 
19
        set -ex; \
 
20
                for py in $(PYVERS) $(PY3VERS); do \
 
21
                $$py setup.py install --root debian/python-stem \
 
22
                --install-layout=deb; \
 
23
                done; \
 
24
                rm -rf debian/python-stem/usr/lib/python3/dist-packages/stem/__pycache__ ; \
 
25
                rm -rf debian/python-stem/usr/lib/python3/dist-packages/stem/*/__pycache__  
 
26
        
 
27
# By now, we build a multiplatform py2+py3 binary
 
28
#       set -ex; \
 
29
#               for py in $(PY3VERS); do \
 
30
#               $$py setup.py install --root debian/python3-stem \
 
31
#               --install-layout=deb; \
 
32
#               done
 
33
 
 
34
 
 
35
override_dh_auto_clean:
 
36
        dh_auto_clean -- --all
 
37
        rm -rf build