tag 445248 + patch
thanks

Here is a patch to build decompyle with python2.5. I have checked that
the testsuite runs fine with python2.5 and produces the same results as
when run with python2.4.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
diff -u decompyle-2.3.2/debian/changelog decompyle-2.3.2/debian/changelog
--- decompyle-2.3.2/debian/changelog
+++ decompyle-2.3.2/debian/changelog
@@ -1,3 +1,9 @@
+decompyle (2.3.2-4.1) UNRELEASED; urgency=low
+
+  * Now build against all python versions.
+
+ -- Josselin Mouette <[EMAIL PROTECTED]>  Mon, 21 Jan 2008 22:23:56 +0100
+
 decompyle (2.3.2-4) unstable; urgency=low
 
   * Now builds and runs under python2.4 (this required making a local copy
reverted:
--- decompyle-2.3.2/debian/pycompat
+++ decompyle-2.3.2.orig/debian/pycompat
@@ -1 +0,0 @@
-2
diff -u decompyle-2.3.2/debian/rules decompyle-2.3.2/debian/rules
--- decompyle-2.3.2/debian/rules
+++ decompyle-2.3.2/debian/rules
@@ -10,39 +10,36 @@
 # decompyle.  The control file uses a hard-coded XS-Python-Version: X.Y,
 # since upgrades need to be checked carefully by a human.
 #
-PYTHON = $(shell pyversions -r)
+PYVERS = $(shell pyversions -vr)
 
 INSTALL_DIR = install -p -d -o root -g root -m 755
 INSTALL_FILE = install -p -o root -g root -m 644
 
 tmp = debian/decompyle
 
-configure: configure-stamp
-configure-stamp:
+build: $(PYVERS:%=build-python%)
+build-python%:
 	dh_testdir
-	touch configure-stamp
-
-build: configure-stamp build-stamp
-build-stamp:
-	dh_testdir
-	$(PYTHON) setup.py build
-	touch build-stamp
+	python$* setup.py build --executable=/usr/bin/python
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
+	rm -f build-python*
 	rm -rf build
 	dh_clean
 
-install: build
+install: install-clean $(PYVERS:%=install-python%)
+install-clean:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
 
+install-python%: build-python%
 	# Run the full install for each version of python.
-	$(PYTHON) setup.py install --no-compile --root=debian/decompyle
+	python$* setup.py install --no-compile --root=debian/decompyle
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -70 +67 @@
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
diff -u decompyle-2.3.2/debian/control decompyle-2.3.2/debian/control
--- decompyle-2.3.2/debian/control
+++ decompyle-2.3.2/debian/control
@@ -2,9 +2,9 @@
 Section: python
 Priority: optional
 Maintainer: Ben Burton <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5.0.38), python, python2.4-dev, python-central (>= 0.5.6)
+Build-Depends: debhelper (>= 5.0.38), python-all-dev, python-central (>= 0.5.6)
 Standards-Version: 3.7.2.2
-XS-Python-Version: 2.4
+XS-Python-Version: >= 2.4, << 2.6
 
 Package: decompyle
 Architecture: any

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to