[Buildbot-devel] build-slave python 2.3 compatibility

Marc-Antoine Ruel maruel at chromium.org
Fri Jul 9 14:06:01 UTC 2010


http://djmitche.github.com/buildbot/docs/0.8.1/Common-Requirements.html#Common-Requirements

"Buildbot requires python-2.4 or later."

Le 9 juillet 2010 08:47, Douglas Leeder <douglas.leeder at sophos.com> a écrit :
> build-slave 0.8.1 needs the following patch to be python 2.3 compatible:
>
> --- buildslave/commands/base.py 2010-07-07 06:46:01.000000000 +0100
> +++ /usr/lib/python2.3/site-packages/buildslave/commands/base.py
> 2010-07-25 16:53:59.000000000 +0100
> @@ -60,14 +60,13 @@
>      def __repr__(self):
>          return `self.fake`
>
> -    @staticmethod
>      def to_text(s):
>          if isinstance(s, (str, unicode)):
>              return s
>          else:
>              return str(s)
> +    to_text=static_method(to_text)
>
> -    @staticmethod
>      def get_real(command):
>          rv = command
>          if type(command) == types.ListType:
> @@ -78,8 +77,8 @@
>                  else:
>                      rv.append(Obfuscated.to_text(elt))
>          return rv
> +    get_real=static_method(get_real)
>
> -    @staticmethod
>      def get_fake(command):
>          rv = command
>          if type(command) == types.ListType:
> @@ -90,6 +89,7 @@
>                  else:
>                      rv.append(Obfuscated.to_text(elt))
>          return rv
> +    get_fake=static_method(get_fake)
>
>  class AbandonChain(Exception):
>      """A series of chained steps can raise this exception to indicate that
>
> --
> Douglas Leeder, Senior Software Engineer
>
> Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
> Company Reg No 2096520. VAT Reg No GB 348 3873 20.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>




More information about the devel mailing list