~ubuntu-branches/ubuntu/quantal/python-tz/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-10-27 07:29:54 UTC
  • mfrom: (1.1.9 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081027072954-y0tje6borovf4eva
Tags: 2008h-1
* New upstream version.
  - Fixes lookup errors with unknown timezones (error setting US/Pacific-New
    timezone. LP: #244681).
* debian/copyright: Update copyright year and download location.
* debian/control: Update homepage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        touch $@
14
14
build-python%:
15
15
        dh_testdir
16
 
        python$* setup.py build
 
16
        PYTHONPATH=$(CURDIR) python$* setup.py build
17
17
        touch $@
18
18
 
19
19
.PHONY: clean
39
39
        # install our testing package
40
40
        install -D debian/test-pytz debian/$(PACKAGE)/usr/lib/python-tz/test-pytz.py
41
41
 
42
 
        : # Replace all '#!' calls to python with /usr/bin/python
43
 
        : # and make them executable
44
 
        for i in `find debian -mindepth 3 -type f`; do \
45
 
          sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
46
 
                $$i > $$i.temp; \
47
 
          if cmp --quiet $$i $$i.temp; then \
48
 
            rm -f $$i.temp; \
49
 
          else \
50
 
            mv -f $$i.temp $$i; \
51
 
            chmod 755 $$i; \
52
 
            echo "fixed interpreter: $$i"; \
53
 
          fi; \
54
 
        done
55
 
 
56
42
install-python%:
57
 
        python$* setup.py install --no-compile --root=debian/$(PACKAGE)
58
 
        #python$* setup.py install --no-compile --single-version-externally-managed --root=debian/$(PACKAGE)
 
43
        PYTHONPATH=$(CURDIR) python$* setup.py install --no-compile --root=debian/$(PACKAGE)
59
44
        # remove zoneinfo, our patch to pytz makes it use the one from tzdata
60
45
        rm -rf debian/$(PACKAGE)/usr/lib/python$*/site-packages/pytz/zoneinfo
61
46