From 1a11e085b271d880edde835633d89b1ec4591fa2 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 19 May 2016 17:18:34 +0100 Subject: [PATCH] [#2828] [Packaging] Fix ImportError with setuptools version > 18.8 --- win32/deluge-bbfreeze.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32/deluge-bbfreeze.py b/win32/deluge-bbfreeze.py index 418d9decf..12d27c186 100644 --- a/win32/deluge-bbfreeze.py +++ b/win32/deluge-bbfreeze.py @@ -80,6 +80,10 @@ def recipe_gtk_override(mf): return True bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override +# Workaround for "ImportError: The 'packaging' package is required" with setuptools > 18.8. +# (https://github.com/pypa/setuptools/issues/517) +bbfreeze.recipes.recipe_pkg_resources = bbfreeze.recipes.include_whole_package("pkg_resources") + fzr = bbfreeze.Freezer(build_dir, includes=includes, excludes=excludes) fzr.include_py = False fzr.setIcon(os.path.join(os.path.dirname(deluge.common.__file__), "data", "pixmaps", "deluge.ico"))