Re: dh_python
On mer, 2004-07-21 at 14:41 +0200, Igor Stroh wrote: > my AM pointed me at a possible error source in dh_python: > the code in prerm skeleton[1] tries to delete all *.py[c|o] files > of the appropriate package using xargs. The command used > here might fail if the path of this file contains whitespaces. > I mean I can hardly imagine a situation where a python > package would contain blanks (and blanks in module names > wouldn't work anyway)... > > Can anyone think of an example where whitespaces in > package's paths would be valid? This is not possible in the python directories (/usr/lib/python2.x/site- packages). However, if the packages ships .py files in a directory containing whitespaces and uses them, it is true that dh_python is likely to fail. My opinion is that shipping files in such directories is a bad idea anyway, but it's true the script could be improved. Regards, -- Josselin Mouette /\./\ pouet pouet « Sans puissance, la maîtrise n'est rien. » signature.asc Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Re: dh_python
On Thu, Jul 22, 2004 at 11:43:56AM +0200, Josselin Mouette wrote: > On mer, 2004-07-21 at 14:41 +0200, Igor Stroh wrote: > > > my AM pointed me at a possible error source in dh_python: > > the code in prerm skeleton[1] tries to delete all *.py[c|o] files > > of the appropriate package using xargs. The command used > > here might fail if the path of this file contains whitespaces. > > I mean I can hardly imagine a situation where a python > > package would contain blanks (and blanks in module names > > wouldn't work anyway)... > > > > Can anyone think of an example where whitespaces in > > package's paths would be valid? > > This is not possible in the python directories (/usr/lib/python2.x/site- > packages). i I'd have to check, but I think it could be achieved with a .pth file, though I agree that this would be frowned upon. -- Alexandre Fayolle LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org signature.asc Description: Digital signature