Hi, On Mon, 19 Feb 2007, A. Christine Spang wrote: > I don't really know much about the specifics of bytecompilation, but I > -can- reproduce the bug that was reported against the package. If I > install it and then try to run it with a different version of python, I > get an error that looks like this: > > [EMAIL PROTECTED]:~/maint$ gquilt > RuntimeError: Bad magic number in .pyc file > > Could this be because upstream executes the program through a shell > script wrapper that runs: > > exec python $GQUILT_LIB_DIR/gquilt.pyc > > ($GQUILT_LIB_DIR=/usr/share/gquilt) > > ?
Yes possibly. Instead of trying to call the ".pyc" directly, invoke with the ".py" as parameter. If there's a usable .pyc it will make use of it, otherwise it won't. > > python-central takes care of all .py files from a package... so they > > should be auto-bytecompiled as far as I know. For proper dependencies to be > > generated you have to indicate /usr/share/gquilt/ as parameter to > > dh_pycentral however. > > Hmm, according to the manpage /usr/share/$PACKAGE is one of the default > places to search, and it looks like this is working properly. Right, forgot about that. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]