~jtaylor/ipython/debian-daily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Julian Taylor
  • Date: 2013-11-07 22:52:58 UTC
  • Revision ID: jtaylor@ubuntu.com-20131107225258-t06219b7dlb5ekt2
adapt to new executables, temporarily disable tests, remove ipython2.X links

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
override_dh_auto_build:
21
21
        dh_auto_build -- --executable '/usr/bin/env python'
22
 
        # utf-8 due to https://github.com/ipython/ipython/issues/2057
23
22
        set -e && for pyvers in $(PY3VERS); do \
24
23
          $$pyvers setup.py build --executable '/usr/bin/env python3'; \
25
24
        done
31
30
        HOME=$(CURDIR)/build PYTHONPATH=$(CURDIR) $(MAKE) -C $(CURDIR)/docs html
32
31
endif
33
32
 
34
 
override_dh_auto_test:
 
33
# disabled needs fixing for testing against installed package (note ipython=py3 default)
 
34
override_dh_auto_test_disabled:
35
35
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
36
36
        # IPython.frontend requires X
37
37
        for pyvers in $(PYVERS); do \
50
50
          $$pyvers setup.py install --install-layout=deb \
51
51
                --force --no-compile -O0 --root=$(CURDIR)/debian/tmp; \
52
52
        done
53
 
        # py3 uses entrypoints where --excutable in build has no effect
 
53
        # fix shebangs
 
54
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/ipython
 
55
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/irunner
 
56
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/ipcluster
 
57
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/ipcontroller
 
58
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/ipengine
 
59
        sed -i '1c#!/usr/bin/env python' $(CURDIR)/debian/tmp/usr/bin/iplogger
 
60
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/ipython2
 
61
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/irunner2
 
62
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/ipcluster2
 
63
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/ipcontroller2
 
64
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/ipengine2
 
65
        sed -i '1c#!/usr/bin/env python2' $(CURDIR)/debian/tmp/usr/bin/iplogger2
54
66
        sed -i '1c#!/usr/bin/env python3' $(CURDIR)/debian/tmp/usr/bin/ipython3
55
67
        sed -i '1c#!/usr/bin/env python3' $(CURDIR)/debian/tmp/usr/bin/irunner3
56
68
        sed -i '1c#!/usr/bin/env python3' $(CURDIR)/debian/tmp/usr/bin/ipcluster3
109
121
        # remove embedded pexpect
110
122
        find $(CURDIR)/debian/ipython/usr/ -name _pexpect.py -delete
111
123
 
112
 
        # add wrapper scripts for all python versions
113
 
        set -e ;\
114
 
        firstpyver="" ;\
115
 
        for pyvers in $(PYVERS); do \
116
 
            if [ "$${firstpyver}" = "" ]; then \
117
 
                install -m 755 debian/ipython.sh $(CURDIR)/debian/ipython/usr/bin/ipython$$pyvers ;\
118
 
                firstpyver="$$pyvers" ;\
119
 
            else \
120
 
                dh_link -pipython /usr/bin/ipython$${firstpyver} /usr/bin/ipython$$pyvers ;\
121
 
            fi ;\
122
 
            dh_link -pipython /usr/share/man/man1/ipython.1.gz /usr/share/man/man1/ipython$$pyvers.1.gz ;\
123
 
        done
124
 
 
125
124
        # change permission on scripts
126
125
        find $(CURDIR)/debian/ipython-notebook-common -type f | xargs chmod a-x
127
126
 
149
148
        dh_python2 -pipython-notebook
150
149
 
151
150
override_dh_python3:
152
 
        dh_python3 -pipython3
153
 
        dh_python3 -pipython3-qtconsole
154
 
        dh_python3 -pipython3-notebook
 
151
        dh_python3 -pipython3 --no-shebang-rewrite
 
152
        dh_python3 -pipython3-qtconsole --no-shebang-rewrite
 
153
        dh_python3 -pipython3-notebook --no-shebang-rewrite
155
154
 
156
155
override_dh_installman:
157
156
        dh_installman
 
157
        dh_link -pipython usr/share/man/man1/ipython.1 \
 
158
          usr/share/man/man1/ipython2.1
 
159
        dh_link -pipython usr/share/man/man1/irunner.1 \
 
160
          usr/share/man/man1/irunner2.1
 
161
        dh_link -pipython usr/share/man/man1/ipcluster.1 \
 
162
          usr/share/man/man1/ipcluster2.1
 
163
        dh_link -pipython usr/share/man/man1/ipcontroller.1 \
 
164
          usr/share/man/man1/ipcontroller2.1
 
165
        dh_link -pipython usr/share/man/man1/ipengine.1 \
 
166
          usr/share/man/man1/ipengine2.1
 
167
        dh_link -pipython usr/share/man/man1/iplogger.1 \
 
168
          usr/share/man/man1/iplogger2.1
158
169
        mv debian/ipython3/usr/share/man/man1/ipython.1 \
159
170
          debian/ipython3/usr/share/man/man1/ipython3.1
160
171
        mv debian/ipython3/usr/share/man/man1/irunner.1 \