* gregor herrmann <gre...@debian.org>, 2012-08-20, 23:41:
% lintian -F python-adodb_2.10-1.1_amd64.changes
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/__init__.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_access.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_mssql.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_mxodbc.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_mxoracle.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_mysql.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_oci8.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_odbc.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_odbc_mssql.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_postgres.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_pyodbc.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_sqlite.pyc
E: python-adodb: package-installs-python-bytecode 
usr/share/pyshared/adodb/adodb_vfp.pyc

This is arguably a bug in python-support (it should get rid of *.pyc). On the other hand, the way python-adodb installs its Python modules is, uh, unusual. The attached patch fixes the bytecode problem.

--
Jakub Wilk
diff -u python-adodb-2.10/debian/rules python-adodb-2.10/debian/rules
--- python-adodb-2.10/debian/rules
+++ python-adodb-2.10/debian/rules
@@ -9,8 +9,6 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PY_SUPPORT_DIR=$(CURDIR)/debian/python-adodb/usr/share/python-support/
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
@@ -39,10 +37,8 @@
 	dh_installdirs
 
 	# Add here commands to install the package into debian/python-adodb.
-	install -d $(PY_SUPPORT_DIR)/python-adodb
 	python setup.py install \
-		--prefix=$(CURDIR)/debian/python-adodb/usr/ \
-		--install-lib=$(PY_SUPPORT_DIR)/python-adodb
+		--root=$(CURDIR)/debian/python-adodb/
 
 
 # Build architecture-independent files here.

Reply via email to