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
|