~ubuntu-branches/ubuntu/natty/python-support/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: lool at dooz
  • Date: 2010-05-14 12:40:10 UTC
  • mfrom: (1.1.8 sid)
  • Revision ID: lool@dooz.org-20100514124010-ls5237kxyau157gd
Tags: 1.0.7ubuntu1
* Merge with Debian; remaining changes:
  - Move python2.4 and 2.5 to oldversions.
* Fix stripping of empty lines in debian/pyversions; LP: #437593;
  closes: #568171.
* Only search for XS-Python-Version in the debian/control general paragraph
  (the first one, for the source package); see Debian #567941;
  closes: #568173.
* Add tests for parseversions.
* Use ./parseversions --all --long to list supported versions during build
  instead of poking pysupport.py_supported directly.
* Cleanup shell snippet / tabs in rules.
* Explicitly strip spaces after parsing debian/pyversions.
* dh_pysupport: fix syntax errors in previous patch.
* README: document that only python is required for arch: all 
  packages, not python-dev. Also talk about python-support itself.
  Closes: #563749.
* dh_pysupport: print an error if the default Python version cannot be 
  found. Closes: #572155.
* parseversions: I hate regexes.
* dh_pysupport: ensure there is a Python dependency even when no 
  specific versions are required. Closes: #568811.
* Non-maintainer upload.
* update-python-modules: set umask to 022. Closes: #567811.
* movemodules: do not touch symlinks that merely point to another 
  place in the module tree. Closes: #539187.
* Rename .egg-info files the same way .egg-info directories are renamed
* dh_pysupport: use mkdir -p instead of the Perl mkdir function.
  Closes: #558392.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
4
 
5
 
SUPP=$(shell python -c 'import pysupport; print " ".join(pysupport.py_supported)')
 
5
SUPP := $(shell ./parseversions --all --long)
6
6
 
7
7
clean::
8
8
        rm -f debhelper/dh_pysupport.1 *.pyc
9
9
 
 
10
check:
 
11
        dh_testdir
 
12
        cd tests && PATH=$(CURDIR):$$PATH ./testparseversions.py
 
13
 
 
14
maybe_check = $(if $(findstring nocheck,$(DEB_BUILD_OPTIONS)),,check)
 
15
 
10
16
build/python-support::
11
17
        cd debhelper && pod2man -c "python-support" -r "$(DEB_VERSION)" dh_pysupport dh_pysupport.1
12
18
 
13
 
binary-install/python-support::
 
19
binary-install/python-support:: $(maybe_check)
14
20
        for ver in $(SUPP); do \
15
 
          if dpkg --compare-versions $$ver ge python2.6; then \
16
 
            subdir=dist-packages ; \
17
 
          else \
18
 
            subdir=site-packages ; \
19
 
          fi ; \
20
 
          mkdir -p debian/python-support/usr/lib/$$ver/$$subdir ;\
21
 
          ln -s ../../pymodules/$$ver/.path debian/python-support/usr/lib/$$ver/$$subdir/python-support.pth ;\
 
21
          subdir=dist-packages; \
 
22
          if dpkg --compare-versions $$ver lt python2.6; then \
 
23
            subdir=site-packages; \
 
24
          fi; \
 
25
          mkdir -p debian/python-support/usr/lib/$$ver/$$subdir; \
 
26
          ln -s ../../pymodules/$$ver/.path debian/python-support/usr/lib/$$ver/$$subdir/python-support.pth; \
22
27
        done
 
28