diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-03-07 02:21:59 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-03-07 16:53:49 +0100 |
commit | c6e7a1af4fbd4c5d611ff32e1f457601109ac524 (patch) | |
tree | 929ca99a801a27f803a9743a9537d6dfe597251a | |
parent | 9772777141b166eb070ceaa51d684f66f86f2f98 (diff) |
pep8: fix more errors
-rw-r--r-- | cerbero/bootstrap/bootstraper.py | 7 | ||||
-rw-r--r-- | cerbero/bootstrap/build_tools.py | 10 | ||||
-rw-r--r-- | cerbero/bootstrap/ios.py | 3 | ||||
-rw-r--r-- | cerbero/bootstrap/linux.py | 17 | ||||
-rw-r--r-- | cerbero/bootstrap/osx.py | 9 | ||||
-rw-r--r-- | cerbero/bootstrap/windows.py | 8 |
6 files changed, 28 insertions, 26 deletions
diff --git a/cerbero/bootstrap/bootstraper.py b/cerbero/bootstrap/bootstraper.py index 4ed3af8..7fb6f96 100644 --- a/cerbero/bootstrap/bootstraper.py +++ b/cerbero/bootstrap/bootstraper.py @@ -19,8 +19,8 @@ import logging from cerbero.errors import FatalError -from cerbero.utils import _ -from cerbero.utils import messages as m +from cerbero.utils import _ +from cerbero.utils import messages as m from cerbero.bootstrap.build_tools import BuildTools @@ -58,8 +58,7 @@ class Bootstraper (object): raise FatalError(_("No bootstrapper for the distro %s" % d)) if v not in bootstrapers[d]: # Be tolerant with the distro version - m.warning(_("No bootstrapper for the distro version %s" - % v)) + m.warning(_("No bootstrapper for the distro version %s" % v)) v = None bs.append(bootstrapers[d][v](config)) diff --git a/cerbero/bootstrap/build_tools.py b/cerbero/bootstrap/build_tools.py index 7e333cf..d24a65d 100644 --- a/cerbero/bootstrap/build_tools.py +++ b/cerbero/bootstrap/build_tools.py @@ -29,9 +29,9 @@ class BuildTools (BootstraperBase): BUILD_TOOLS = ['automake', 'autoconf', 'm4', 'libtool', 'pkg-config', 'orc-tool', 'gettext-m4', 'gettext-tools'] PLAT_BUILD_TOOLS = { - Platform.DARWIN: ['intltool', 'yasm', 'cmake'], - Platform.WINDOWS: ['intltool', 'yasm', 'cmake'], - } + Platform.DARWIN: ['intltool', 'yasm', 'cmake'], + Platform.WINDOWS: ['intltool', 'yasm', 'cmake'], + } def __init__(self, config): BootstraperBase.__init__(self, config) @@ -41,7 +41,9 @@ class BuildTools (BootstraperBase): if self.config.platform == Platform.DARWIN: self.BUILD_TOOLS.append('gperf') # We need tar with support for .xz in Snow Leopard - if self.config.distro_version in [DistroVersion.OS_X_LION, DistroVersion.OS_X_SNOW_LEOPARD, DistroVersion.OS_X_LEOPARD]: + if self.config.distro_version in [DistroVersion.OS_X_LION, + DistroVersion.OS_X_SNOW_LEOPARD, + DistroVersion.OS_X_LEOPARD]: self.BUILD_TOOLS.insert(0, 'tar') if self.config.target_platform == Platform.IOS: self.BUILD_TOOLS.append('gas-preprocessor') diff --git a/cerbero/bootstrap/ios.py b/cerbero/bootstrap/ios.py index d23705f..611204e 100644 --- a/cerbero/bootstrap/ios.py +++ b/cerbero/bootstrap/ios.py @@ -3,7 +3,7 @@ # ios.py # # Copyright (C) 2013 Thibault Saunier <thibaul.saunier@collabora.com> -# +# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either @@ -29,6 +29,7 @@ from cerbero.config import Distro class IOSBootstraper (BootstraperBase): + def start(self): # FIXME: enable it when buildbots are properly configured return diff --git a/cerbero/bootstrap/linux.py b/cerbero/bootstrap/linux.py index 2789d4f..ab1a93d 100644 --- a/cerbero/bootstrap/linux.py +++ b/cerbero/bootstrap/linux.py @@ -50,14 +50,14 @@ class DebianBootstraper (UnixBootstraper): 'build-essential', 'devscripts', 'fakeroot', 'transfig', 'gperf', 'libdbus-glib-1-dev', 'wget', 'glib-networking'] distro_packages = { - DistroVersion.DEBIAN_SQUEEZE: ['libgtk2.0-dev'], - DistroVersion.UBUNTU_MAVERICK: ['libgtk2.0-dev'], - DistroVersion.UBUNTU_LUCID: ['libgtk2.0-dev'], - DistroVersion.UBUNTU_NATTY: ['libgtk2.0-dev'], - DistroVersion.DEBIAN_WHEEZY: ['libgdk-pixbuf2.0-dev'], - DistroVersion.UBUNTU_ONEIRIC: ['libgdk-pixbuf2.0-dev'], - DistroVersion.UBUNTU_PRECISE: ['libgdk-pixbuf2.0-dev'], - } + DistroVersion.DEBIAN_SQUEEZE: ['libgtk2.0-dev'], + DistroVersion.UBUNTU_MAVERICK: ['libgtk2.0-dev'], + DistroVersion.UBUNTU_LUCID: ['libgtk2.0-dev'], + DistroVersion.UBUNTU_NATTY: ['libgtk2.0-dev'], + DistroVersion.DEBIAN_WHEEZY: ['libgdk-pixbuf2.0-dev'], + DistroVersion.UBUNTU_ONEIRIC: ['libgdk-pixbuf2.0-dev'], + DistroVersion.UBUNTU_PRECISE: ['libgdk-pixbuf2.0-dev'], + } def __init__(self, config): UnixBootstraper.__init__(self, config) @@ -70,7 +70,6 @@ class DebianBootstraper (UnixBootstraper): self.packages.remove('autopoint') - class RedHatBootstraper (UnixBootstraper): tool = 'su -c "yum install %s"' diff --git a/cerbero/bootstrap/osx.py b/cerbero/bootstrap/osx.py index 40a176f..7e107c3 100644 --- a/cerbero/bootstrap/osx.py +++ b/cerbero/bootstrap/osx.py @@ -28,11 +28,12 @@ from cerbero.utils import shell class OSXBootstraper (BootstraperBase): - GCC_BASE_URL='https://github.com/downloads/kennethreitz/osx-gcc-installer/' + GCC_BASE_URL = 'https://github.com/downloads/kennethreitz/'\ + 'osx-gcc-installer/' GCC_TAR = { - DistroVersion.OS_X_MOUNTAIN_LION: 'GCC-10.7-v2.pkg', - DistroVersion.OS_X_LION: 'GCC-10.7-v2.pkg', - DistroVersion.OS_X_SNOW_LEOPARD: 'GCC-10.6.pkg'} + DistroVersion.OS_X_MOUNTAIN_LION: 'GCC-10.7-v2.pkg', + DistroVersion.OS_X_LION: 'GCC-10.7-v2.pkg', + DistroVersion.OS_X_SNOW_LEOPARD: 'GCC-10.6.pkg'} def start(self): # FIXME: enable it when buildbots are properly configured diff --git a/cerbero/bootstrap/windows.py b/cerbero/bootstrap/windows.py index 6ad4b8e..1f5768b 100644 --- a/cerbero/bootstrap/windows.py +++ b/cerbero/bootstrap/windows.py @@ -37,8 +37,8 @@ MINGWGET_DEPS = ['msys-wget'] GNOME_FTP = 'http://ftp.gnome.org/pub/gnome/binaries/win32/' WINDOWS_BIN_DEPS = ['intltool/0.40/intltool_0.40.4-1_win32.zip'] PTHREADS_URL = \ -'''http://downloads.sourceforge.net/project/mingw-w64/External%20binary%20\ -packages%20%28Win64%20hosted%29/pthreads/pthreads-20100604.zip''' + '''http://downloads.sourceforge.net/project/mingw-w64/External%20binary%20\ + packages%20%28Win64%20hosted%29/pthreads/pthreads-20100604.zip''' class WindowsBootstraper(BootstraperBase): @@ -50,8 +50,8 @@ class WindowsBootstraper(BootstraperBase): def start(self): if not git.check_line_endings(self.config.platform): - raise ConfigurationError ("git is configured to use automatic line endings" - " conversion. You can fix it running:\n" + raise ConfigurationError("git is configured to use automatic line " + "endings conversion. You can fix it running:\n" "$git config core.autocrlf false") self.prefix = self.config.toolchain_prefix self.platform = self.config.target_platform |