Description: Use Setuptools instead of Distribute Fixes FTBFS in recent Ubuntu releases. Cherry-picked from Distribute 0.6.49. Forwarded: not-needed Author: Graham Inggs Last-Update: 2015-05-21 --- a/distribute_setup.py +++ b/distribute_setup.py @@ -137,6 +144,16 @@ try: try: import pkg_resources + + # Setuptools 0.7b and later is a suitable (and preferable) + # substitute for any Distribute version. + try: + pkg_resources.require("setuptools>=0.7b") + return + except (pkg_resources.DistributionNotFound, + pkg_resources.VersionConflict): + pass + if not hasattr(pkg_resources, '_distribute'): if not no_fake: _fake_setuptools()