[#2828] [Packaging] Fix ImportError with setuptools version > 18.8

This commit is contained in:
Calum Lind 2016-05-19 17:18:34 +01:00
parent fcb65940d9
commit 1a11e085b2
1 changed files with 4 additions and 0 deletions

View File

@ -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"))