From 36cbfa8c618f86bcb6c08c52095be83c10c976a3 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 16 Nov 2016 22:18:18 +0000 Subject: [Lint] Fix files to pass Flake8 v3.2.0 --- packaging/win32/deluge-bbfreeze.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packaging') diff --git a/packaging/win32/deluge-bbfreeze.py b/packaging/win32/deluge-bbfreeze.py index dd69f13a2..0ee03e371 100644 --- a/packaging/win32/deluge-bbfreeze.py +++ b/packaging/win32/deluge-bbfreeze.py @@ -47,6 +47,7 @@ class VersionInfo(object): self.debug = debug self.verbose = verbose + DEBUG = False if len(sys.argv) == 2 and sys.argv[1].lower() == 'debug': DEBUG = True @@ -79,6 +80,8 @@ def recipe_gtk_override(mf): # Override bbfreeze function so that it includes all gtk libraries # in the installer so users don't require a separate GTK+ installation. return True + + bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override # Workaround for "ImportError: The 'packaging' package is required" with setuptools > 18.8. @@ -147,6 +150,8 @@ def ignored_files(adir, ignore_filenames): if not os.path.isdir(os.path.join(adir, ignore_file)) and ignore_file not in locale_include_list ] + + shutil.copytree(gtk_locale, os.path.join(build_dir, 'share/locale'), ignore=ignored_files) # Copy gtk theme files. -- cgit v1.2.3