From: robk-tahoe Date: Thu, 10 Jan 2008 22:26:19 +0000 (-0700) Subject: fix nevow build prob for py2exe X-Git-Url: https://git.rkrishnan.org/somewhere?a=commitdiff_plain;h=ac5f7cf7aa93cf3f281424cc1b8fda0ff0970296;p=tahoe-lafs%2Ftahoe-lafs.git fix nevow build prob for py2exe nevow attempts to use pkg_resources to find the formless css file upon import, if pkg_resources is available. unfortunately using pkg_resources to find files is not supported if the files are being loaded from a zip archive (i.e. only source and egg), and further py2exe uses a zip bundle for all the code and dependent libraries. hence having both pkg_resources and nevow built into an exe causes nevow to explode upon import. this tells py2exe not to link pkg_resources into the target, so that this behaviour isn't stimulated. the side effect being that pkg_resources isn't available. --- diff --git a/windows/setup.py b/windows/setup.py index e93e1b20..47a56ed4 100644 --- a/windows/setup.py +++ b/windows/setup.py @@ -21,6 +21,7 @@ setup_args = { 'options': { "py2exe": { "excludes": [ + "pkg_resources", ], "includes": [ ],