File: rules

package info (click to toggle)
elementtree 1.2.6-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 320 kB
  • ctags: 353
  • sloc: python: 1,510; makefile: 16; xml: 10
file content (29 lines) | stat: -rwxr-xr-x 1,084 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pysupport

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

# Install egg-info directories
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
DEB_DESTDIR=debian/python-elementtree

UPSTREAM_VERSION=$(shell python setup.py -V 2>&1 | sed 's/\-/_/')
PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)

common-binary-post-install-indep::
# 	where does this come from?
	rm -rf debian/python-elementtree-doc/usr/share/python-support
	mv debian/python-elementtree/usr/share/python-support/python-elementtree/elementtree-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
                debian/python-elementtree/usr/share/python-support/python-elementtree/elementtree-${UPSTREAM_VERSION}.egg-info

clean::
#	hack (CDBS bug -- see #300149)
	-rm -rf build

binary-predeb/python-elementtree::
        # Which .py files to byte-compile
	echo "2.3-2.4" > debian/python-elementtree/usr/share/python-support/python-elementtree/.version