From f7d2e8aaad8c7b1dc62284ee3c898bed46e2ffbb Mon Sep 17 00:00:00 2001 From: Andy Kittner Date: Sat, 9 Nov 2013 00:03:21 +0100 Subject: [PATCH] Add correct wxpython version to PACKAGES.txt (fixes #821) --- extras/win32-portable/prepare_portable.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extras/win32-portable/prepare_portable.py b/extras/win32-portable/prepare_portable.py index 218169e02..65364fea2 100755 --- a/extras/win32-portable/prepare_portable.py +++ b/extras/win32-portable/prepare_portable.py @@ -430,13 +430,13 @@ def write_package_info_content(outfile): """ text = ['Included Packages\n', 17 * '=' + '\n', '\n'] for pkg in sorted(SITE_PACKAGES): - try: + if pkg == "wx": + # wxpython comes from an installer and has no distribution + # --> handle it separately + text.append("wxpython-{0}\n".format(wx.__version__)) + else: dist = pkg_resources.get_distribution(pkg) text.append("{0}-{1}\n".format(dist.project_name, dist.version)) - except pkg_resources.DistributionNotFound: - # FIXME: wxpython comes from an installer and has no distribution - # see what we can do about that - text.append("{0}-???\n".format(pkg)) with open(outfile, "w") as f: f.writelines(text)