support new default Debian python version

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@499 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-08-29 10:23:56 +00:00
parent a3147d1bd2
commit 0355a7cd44
4 changed files with 8 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# This Makefile is only used by developers.
PYTHON=python2.2
PYTHON=python
VERSION=$(shell $(PYTHON) setup.py --version)
PACKAGE=linkchecker
NAME=$(shell $(PYTHON) setup.py --name)

View file

@ -3,8 +3,9 @@
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
# used by Bastian Kleineidam for LinkChecker
set -e
PYTHON=python2.2
SITEPACKAGES=/usr/lib/$PYTHON/site-packages
PYTHON=python
PYVER=2.2
SITEPACKAGES=/usr/lib/${PYTHON}${PYVER}/site-packages
DIRLIST=linkcheck
FILELIST=_linkchecker_configdata.py
COMMAND="'import sys,py_compile;py_compile.compile(sys.argv[1])'"

View file

@ -4,7 +4,8 @@
# used by Bastian Kleineidam for LinkChecker
set -e
PACKAGE=linkchecker
PYTHON=python2.2
PYTHON=python
PYVER=2.2
#DEBHELPER#
@ -12,7 +13,7 @@ dpkg --listfiles $PACKAGE |
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
xargs rm -f >&2
rmdir /usr/lib/$PYTHON/site-packages/linkcheck 2>/dev/null || true
rmdir /usr/lib/${PYTHON}${PYVER}/site-packages/linkcheck 2>/dev/null || true
# for later use of python-central
#/usr/sbin/register-python-package module remove linkchecker ">=2.0"

2
debian/rules vendored
View file

@ -3,7 +3,7 @@
# GNU copyright 1997 to 1999 by Joey Hess.
PACKAGE=linkchecker
DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
PYTHON=python2.2
PYTHON=python
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1