Hi! Thanks to Piotr Ozarowski's help, I managed to create a patch which uses python-support for the byte-compilation. This involves:
* Update Build-Depends, rules, magicor.install to put Magicor.py and Magicor-LevelEditor.py in /usr/share/games/magicor * Modifying Makefile.debian to install all Python modules in /usr/share/games/magicor/magicor * Create symlinks for magicor and magicor-edito in /usr/games, instead of copying Magicor.py and Magicor-LevelEditor.py directly. HTH. Please do consider updating the package and fixing the RC bug at the earliest. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
diff -Nru --exclude changelog magicor-1.0/debian/control magicor-1.0/debian/control
--- magicor-1.0/debian/control 2008-04-30 18:43:16.000000000 +0530
+++ magicor-1.0/debian/control 2008-04-30 18:43:17.000000000 +0530
@@ -3,12 +3,13 @@
Priority: optional
Maintainer: Xavier Oswald <[EMAIL PROTECTED]>
Uploaders: Frederic Wagner <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5), cdbs, python (>= 2.4-1)
+Build-Depends: debhelper (>= 5), cdbs, python-all-dev (>= 2.3.5-11)
+Build-Depends-Indep: python-support (>= 0.5.3)
Standards-Version: 3.7.2
Package: magicor
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python( >= 2.4-1),
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
python-pygame, magicor-data, libsdl-image1.2, libsdl-mixer1.2,
python-gtk2, libglade2-0
Description: puzzle game in the spirit of solomon's key
@@ -20,7 +21,7 @@
Package: magicor-data
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python ( >= 2.4-1)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
Description: data files for the magicor puzzle game
Magicor is a small puzzle game similar to the old NES classic
solomon's key. You control tux the penguin and create ice blocks
diff -Nru --exclude changelog /tmp/LShrKS1m0z/magicor-1.0/debian/magicor.dirs /tmp/lXeRSlAOCd/magicor-1.0/debian/magicor.dirs
--- magicor-1.0/debian/magicor.dirs 2008-04-30 18:43:16.000000000 +0530
+++ magicor-1.0/debian/magicor.dirs 2008-04-30 18:43:17.000000000 +0530
@@ -1,3 +1,3 @@
usr/games
-usr/lib/python2.4/site-packages/magicor
etc
+usr/share/games/magicor/magicor
diff -Nru --exclude changelog /tmp/LShrKS1m0z/magicor-1.0/debian/magicor.install /tmp/lXeRSlAOCd/magicor-1.0/debian/magicor.install
--- magicor-1.0/debian/magicor.install 2008-04-30 18:43:16.000000000 +0530
+++ magicor-1.0/debian/magicor.install 2008-04-30 18:43:17.000000000 +0530
@@ -1,8 +1,8 @@
-debian/tmp/usr/games/magicor
-debian/tmp/usr/games/magicor-editor
debian/tmp/etc/magicor.conf
debian/tmp/etc/magicor-editor.conf
-debian/tmp/usr/lib/python2.4/site-packages/magicor/*.py
-debian/tmp/usr/lib/python2.4/site-packages/magicor/editor/*.py
-debian/tmp/usr/lib/python2.4/site-packages/magicor/sprites/*.py
-debian/tmp/usr/lib/python2.4/site-packages/magicor/states/*.py
+debian/tmp/usr/share/games/magicor/magicor/*.py
+debian/tmp/usr/share/games/magicor/magicor/editor/*.py
+debian/tmp/usr/share/games/magicor/magicor/sprites/*.py
+debian/tmp/usr/share/games/magicor/magicor/states/*.py
+debian/tmp/usr/share/games/magicor/Magicor.py
+debian/tmp/usr/share/games/magicor/Magicor-LevelEditor.py
diff -Nru --exclude changelog /tmp/LShrKS1m0z/magicor-1.0/debian/magicor.links /tmp/lXeRSlAOCd/magicor-1.0/debian/magicor.links
--- magicor-1.0/debian/magicor.links 1970-01-01 05:30:00.000000000 +0530
+++ magicor-1.0/debian/magicor.links 2008-04-30 18:43:17.000000000 +0530
@@ -0,0 +1,2 @@
+usr/share/games/magicor/Magicor.py usr/games/magicor
+usr/share/games/magicor/Magicor-LevelEditor.py usr/games/magicor-editor
diff -Nru --exclude changelog /tmp/LShrKS1m0z/magicor-1.0/debian/rules /tmp/lXeRSlAOCd/magicor-1.0/debian/rules
--- magicor-1.0/debian/rules 2008-04-30 18:43:16.000000000 +0530
+++ magicor-1.0/debian/rules 2008-04-30 18:43:17.000000000 +0530
@@ -9,3 +9,16 @@
DEB_MAKE_BUILD_TARGET = all
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/tmp/
DEB_MAKE_MAKEFILE = Makefile.debian
+
+binary-install/magicor::
+ dh_pysupport -pmagicor /usr/share/games/magicor/magicor
+
+# install/magicor::
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/*.py usr/share/magicor
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/editor/*.py usr/share/magicor/editor
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/sprites/*.py usr/share/magicor/sprites
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/states/*.py usr/share/magicor/states
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/*.py usr/lib/`pyversions -d`/site-packages/magicor
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/editor/*.py usr/lib/`pyversions -d`/site-packages/magicor/editor
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/sprites/*.py usr/lib/`pyversions -d`/site-packages/magicor/sprites
+# dh_install debian/tmp/usr/lib/`pyversions -d`/site-packages/magicor/states/*.py usr/lib/`pyversions -d`/site-packages/magicor/states
diff -Nru --exclude changelog /tmp/LShrKS1m0z/magicor-1.0/Makefile.debian /tmp/lXeRSlAOCd/magicor-1.0/Makefile.debian
--- magicor-1.0/Makefile.debian 2007-01-22 02:41:24.000000000 +0530
+++ magicor-1.0/Makefile.debian 2008-04-30 18:43:17.000000000 +0530
@@ -18,9 +18,9 @@
# The prefix is added as a prefix (duh) to all other paths as default.
PREFIX=$(DESTDIR)
# Where the magicor package will be installed, including final directory.
-PYTHON_LIB=$(PREFIX)/usr/lib/python$(PYTHON_VERSION)/site-packages/magicor
+PYTHON_LIB=$(PREFIX)/usr/share/games/magicor/magicor
# Where the executable scripts will be installed.
-BIN_PATH=$(PREFIX)/usr/games
+BIN_PATH=$(PREFIX)/usr/share/games/magicor
# Where the shared data will be stored.
SHARE_PATH=$(PREFIX)/usr/share/games/magicor
# Where to find the system-wide config file.
@@ -43,13 +43,13 @@
mkdir -p $(PYTHON_LIB)
cp -fr magicor/* $(PYTHON_LIB)
mkdir -p $(BIN_PATH)
- cat Magicor.py | python scripts/replacer.py "###CONFIG_PATH###" /etc/magicor.conf > $(BIN_PATH)/magicor
+ cat Magicor.py | python scripts/replacer.py "###CONFIG_PATH###" /etc/magicor.conf > $(BIN_PATH)/Magicor.py
mkdir -p $(CONFIG)
cat etc/magicor.conf | python scripts/replacer.py "###SHARE_PATH###" /usr/share/games/magicor > $(CONFIG)/magicor.conf
- cat Magicor-LevelEditor.py | python scripts/replacer.py "###CONFIG_PATH###" /etc/magicor-editor.conf > $(BIN_PATH)/magicor-editor
+ cat Magicor-LevelEditor.py | python scripts/replacer.py "###CONFIG_PATH###" /etc/magicor-editor.conf > $(BIN_PATH)/Magicor-LevelEditor.py
cat etc/magicor-editor.conf | python scripts/replacer.py "###SHARE_PATH###" /usr/share/games/magicor > $(CONFIG)/magicor-editor.conf
- chmod a+x $(BIN_PATH)/magicor
- chmod a+x $(BIN_PATH)/magicor-editor
+ chmod a+x $(BIN_PATH)/Magicor.py
+ chmod a+x $(BIN_PATH)/Magicor-LevelEditor.py
mkdir -p $(SHARE_PATH)
cp -fr data/* $(SHARE_PATH)
@echo "Done. If everything wen't well you can now run '$(BIN_PATH)/magicor'"
signature.asc
Description: Digital signature

