[#2828] [Packaging] Fix ImportError with setuptools version > 18.8
This commit is contained in:
parent
cea50f319d
commit
6971e08b0d
|
@ -81,6 +81,10 @@ def recipe_gtk_override(mf):
|
||||||
return True
|
return True
|
||||||
bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override
|
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 = bbfreeze.Freezer(build_dir, includes=includes, excludes=excludes)
|
||||||
fzr.include_py = False
|
fzr.include_py = False
|
||||||
fzr.setIcon(os.path.join(os.path.dirname(deluge.common.__file__), "ui", "data", "pixmaps", "deluge.ico"))
|
fzr.setIcon(os.path.join(os.path.dirname(deluge.common.__file__), "ui", "data", "pixmaps", "deluge.ico"))
|
||||||
|
|
Loading…
Reference in New Issue