Le dimanche 27 avril 2008 à 18:49 +0200, Vincent Bernat a écrit : > OoO La nuit ayant déjà recouvert d'encre ce jour du vendredi 25 avril > 2008, vers 23:41, [EMAIL PROTECTED] disait: > > > To be honest I do not fully understand the purpose of python-support; > > in particular, the addition of /var/lib/python-support/pythonX.X to > > sys.path seems to create a lot of problems like this one and I don't > > see what issues it solves. There are already tons of symlinks here; > > why not just symlink everything in /var/lib into /usr/lib > > appropriately?
The problem has nothing to do with /var/lib/python-support/pythonX.Y being added to sys.path, really. The root cause is a python-support feature which automatically creates namespace packages (empty __init__.py files) as necessary. > Now, back to the bug, I could fix it in python-nevow by using > python-central in place of python-support. Again, this only fixes it for > python-nevow, while there could be other breakages. This only hides the problem. If python-central is fixed to create namespace packages, it will appear again. > A proposition from Christopher in a previous mail: > ,---- > | I can't offer opinions as to in which direction this should be > | resolved. I can think of a workaround for this issue in > | python-twisted: for example, by patching __init__.py to explicitly > | include the python-support twisted/plugins dircetory in __path__. > `---- This is really a hack - not more than making a specific exception for python-twisted in python-support. > - python-support could be modified to not use __init__.py for > twisted/plugins. I don't know what are the consequences of such a > modification Technically this is a very easy fix, but this is opening a can of worms: if we add an exception for twisted, there will be no reason not to fix any other broken package that comes up. I think the real solution is to fix python-twisted to use python modules directories as God intended them to be. Removing the __init__.py check is a really simple change and will fix the issue as well. Cheers, -- .''`. : :' : We are debian.org. Lower your prices, surrender your code. `. `' We will add your hardware and software distinctiveness to `- our own. Resistance is futile.
signature.asc
Description: Ceci est une partie de message numériquement signée