Le lundi 25 août 2008 à 21:13 +0200, Vincent Bernat a écrit :
> OoO Pendant le journal télévisé du lundi 25 août 2008, vers 20:42, je
> disais:
>
> > import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('recaptcha',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('recaptcha',new.module('recaptcha')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
> > /var/lib/python-support/python2.5/import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('recaptcha',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('recaptcha',new.module('recaptcha')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
This one should be nominated for the OMGWTF python package of the day.
> > This snippet can be found in recaptcha_client-1.0.2-py2.5-nspkg.pth that
> > is generated at compile time. I don't know why this is
> > generated. Moreover, this file seems a bit useless. What is the cleanest
> > way to get rid of it and all the egg stuff?
>
> I am not sure what was the precise action that fixed this thing, but my
> last commit was able to get rid of the problem. If someone has some
> explanations, I will welcome them.
>
> BTW, while searching a bit about this problem, I have found this bug:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475440
>
> Is it a bug in python-support?
This looks like just another design flaw in setuptools.
Please, think of the kittens. Don’t use setuptools.
--
.''`.
: :' : We are debian.org. Lower your prices, surrender your code.
`. `' We will add your hardware and software distinctiveness to
`- our own. Resistance is futile.
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=