tags 547838 + patch thanks Please find attached a patch to fix this bug.
HTH. Kumar
diff -Nru --exclude changelog pybridge-0.3.0/debian/rules pybridge-0.3.0/debian/rules --- pybridge-0.3.0/debian/rules 2009-10-12 17:07:17.000000000 -0500 +++ pybridge-0.3.0/debian/rules 2009-10-12 17:07:17.000000000 -0500 @@ -10,6 +10,10 @@ PYTHON := /usr/bin/python PYVER := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]') +include /usr/share/python/python.mk + +SITEDIR = $(call py_sitename, $(PYVER)) + configure: configure-stamp configure-stamp: dh_testdir @@ -39,7 +43,7 @@ dh_testroot dh_clean -k dh_installdirs - ./setup.py install --prefix=./debian/pybridge/usr + ./setup.py install --prefix=./debian/pybridge/usr $(py_setup_install_args) dh_install -ppybridge bin/pybridge.desktop usr/share/applications @@ -52,25 +56,25 @@ rm debian/pybridge/usr/share/pybridge/pixmaps/pybridge.ico # pybridge-server files - mkdir -p debian/pybridge-server/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/server debian/pybridge-server/usr/lib/python$(PYVER)/site-packages/pybridge/ + mkdir -p debian/pybridge-server/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/server debian/pybridge-server/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/ mkdir -p debian/pybridge-server/usr/games mv debian/pybridge/usr/bin/pybridge-server debian/pybridge-server/usr/games # pybridge-common files - mkdir -p debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/enum.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/environment.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/__init__.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/bridge debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/interfaces debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge - mkdir -p debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/error.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/__init__.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/localtable.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/tablemanager.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/usermanager.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network - mv debian/pybridge/usr/lib/python$(PYVER)/site-packages/pybridge/network/roster.py debian/pybridge-common/usr/lib/python$(PYVER)/site-packages/pybridge/network + mkdir -p debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/enum.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/environment.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/__init__.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/bridge debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/interfaces debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge + mkdir -p debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/error.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/__init__.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/localtable.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/tablemanager.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/usermanager.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network + mv debian/pybridge/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network/roster.py debian/pybridge-common/usr/lib/python$(PYVER)/$(SITEDIR)/pybridge/network rm -r debian/pybridge/usr/bin ./setup.py clean --all