[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #158930: python-pmw needs rebuilt against python 2.2



   Actually on second thought we better stick with the current 
python-pmw_0.8.5-6 adjusted to build against python 2.2. Things
like pymol are having issues running with pmw 1.1. The patches
required to get python-pmw_0.8.5-6 built with python 2.2 are
attached below... Thanks in advance.
                               Jack

----------------------------------------------------------------------
diff -uNr python-pmw-0.8.5/debian/control python-pmw-0.8.5.new/debian/control
--- python-pmw-0.8.5/debian/control	2002-09-08 13:14:39.000000000 -0400
+++ python-pmw-0.8.5.new/debian/control	2002-09-08 13:03:35.000000000 -0400
@@ -7,8 +7,8 @@
 
 Package: python-pmw
 Architecture: all
-Depends: python-tk (>= 2.1), python (>= 2.1), python (<< 2.2)
-Conflicts: python-tk (>= 2.2)
+Depends: python-tk (>= 2.2), python (>= 2.2), python (<< 2.3)
+Conflicts: python-tk (>= 2.3)
 Recommends: blt
 Suggests: python-pmw-doc
 Description: Pmw -- Python MegaWidgets
diff -uNr python-pmw-0.8.5/debian/python-pmw.postinst python-pmw-0.8.5.new/debian/python-pmw.postinst
--- python-pmw-0.8.5/debian/python-pmw.postinst	2002-09-08 13:14:39.000000000 -0400
+++ python-pmw-0.8.5.new/debian/python-pmw.postinst	2002-09-08 13:06:43.000000000 -0400
@@ -4,13 +4,13 @@
 # Written by Gregor Hoffleit <flight@debian.org>
 #
 
-DIRLIST="/usr/lib/python2.1/site-packages/Pmw"
+DIRLIST="/usr/lib/python2.2/site-packages/Pmw"
 
 case "$1" in
     configure|abort-upgrade|abort-remove|abort-deconfigure)
         for i in $DIRLIST ; do
-            python2.1 -O /usr/lib/python2.1/compileall.py -q $i
-            python2.1 /usr/lib/python2.1/compileall.py -q $i
+            python2.2 -O /usr/lib/python2.2/compileall.py -q $i
+            python2.2 /usr/lib/python2.2/compileall.py -q $i
         done
     ;;
 
diff -uNr python-pmw-0.8.5/debian/rules python-pmw-0.8.5.new/debian/rules
--- python-pmw-0.8.5/debian/rules	2002-09-08 13:14:39.000000000 -0400
+++ python-pmw-0.8.5.new/debian/rules	2002-09-08 13:04:31.000000000 -0400
@@ -23,14 +23,14 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs -Ai
-	mkdir -p $(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)
+	mkdir -p $(package_dir)/usr/lib/python2.2/site-packages/Pmw/$(v)
 	mkdir -p $(pdoc)/usr/share/doc/$(packagedoc)/examples
 	dh_installdocs -Ai README
 	dh_installchangelogs -i $(v)/doc/changes.html
-	install -m 644 __init__.py $(package_dir)/usr/lib/python2.1/site-packages/Pmw/
+	install -m 644 __init__.py $(package_dir)/usr/lib/python2.2/site-packages/Pmw/
 	install -m 644 $(v)/__init__.py \
-		$(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)/
-	cp -pr $(v)/lib $(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)/+		$(package_dir)/usr/lib/python2.2/site-packages/Pmw/$(v)/
+	cp -pr $(v)/lib $(package_dir)/usr/lib/python2.2/site-packages/Pmw/$(v)/ 	install -m 644 $(v)/demos/* $(pdoc)/usr/share/doc/$(packagedoc)/examples/
 	cp -pr $(v)/doc $(pdoc)/usr/share/doc/$(packagedoc)/html
 	dh_fixperms -i
------------------------------------------------------------------------------



Reply to: