Hello You just have to run find -name '*.exe' -delete in the source tree.
Attached is a patch for automatic fix of original tarball. I've upload that version on mentors too, for RC fix NMU: http://mentors.debian.net/package/python2.7
diff -Naur python2.7-2.7.2/debian/changelog python2.7-2.7.2+dfsg/debian/changelog --- python2.7-2.7.2/debian/changelog 2012-02-19 14:58:14.000000000 +0100 +++ python2.7-2.7.2+dfsg/debian/changelog 2012-02-19 15:21:26.000000000 +0100 @@ -1,3 +1,11 @@ +python2.7 (2.7.2+dfsg-0.1) unstable; urgency=low + + * Non-maintainer upload. + * Remove windows binaries which are not built at build time (Closes: + 639407). + + -- Jean-Michel Vourgère <[email protected]> Sun, 19 Feb 2012 15:00:50 +0100 + python2.7 (2.7.2-8) unstable; urgency=low * Update to 20111130, taken from the 2.7 branch. diff -Naur python2.7-2.7.2/debian/orig-tar.sh python2.7-2.7.2+dfsg/debian/orig-tar.sh --- python2.7-2.7.2/debian/orig-tar.sh 1970-01-01 01:00:00.000000000 +0100 +++ python2.7-2.7.2+dfsg/debian/orig-tar.sh 2012-02-19 15:06:28.000000000 +0100 @@ -0,0 +1,20 @@ +#!/bin/sh -e +#set -x + +# called by uscan with '--upstream-version' <version> <file> + +TMPDIR="dfsg-tmptree" +VERSION="$2" # example: 3.2.2 +OLDFILE="$3" # example: ../python3.2_3.2.2.orig.tar.gz +NEWFILE=`echo "$3" | sed -e 's/\.orig/+dfsg.orig/'` # example ../python3.2_3.2.2+dfsg.orig.tar.gz + +test -d "$TMPDIR" && rm -rf "$TMPDIR" +mkdir "$TMPDIR" +cd "$TMPDIR" +echo Temporarilly unpacking $OLDFILE in `pwd` +tar xfz "../$OLDFILE" +find -name '*.exe' -delete +echo Packing $NEWFILE +tar cfz "../$NEWFILE" . +cd .. +rm -rf "$TMPDIR" diff -Naur python2.7-2.7.2/debian/rules python2.7-2.7.2+dfsg/debian/rules --- python2.7-2.7.2/debian/rules 2012-02-19 14:58:14.000000000 +0100 +++ python2.7-2.7.2+dfsg/debian/rules 2012-02-19 15:04:34.000000000 +0100 @@ -1048,6 +1048,9 @@ binary: binary-indep binary-arch +get-orig-source: + uscan --verbose --force-download + .PHONY: control-file configure build clean binary-indep binary-arch binary install # Local Variables: diff -Naur python2.7-2.7.2/debian/watch python2.7-2.7.2+dfsg/debian/watch --- python2.7-2.7.2/debian/watch 2012-02-19 14:58:14.000000000 +0100 +++ python2.7-2.7.2+dfsg/debian/watch 2012-02-19 15:05:19.000000000 +0100 @@ -1,3 +1,5 @@ version=3 -opts=dversionmangle=s/.*\+//,uversionmangle=s/([abcr]+[1-9])$/~$1/ \ - http://www.python.org/ftp/python/2\.7(\.\d)?/Python-(2\.7[.\dabcr]*)\.tgz +opts=dversionmangle=s/\+.*//,uversionmangle=s/([abcr]+[1-9])$/~$1/ \ + http://www.python.org/ftp/python/2\.7(\.\d)?/Python-(2\.7[.\dabcr]*)\.tgz \ + debian \ + debian/orig-tar.sh
signature.asc
Description: This is a digitally signed message part.

