From ac5f7cf7aa93cf3f281424cc1b8fda0ff0970296 Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 10 Jan 2008 15:26:19 -0700 Subject: [PATCH] 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. --- windows/setup.py | 1 + 1 file changed, 1 insertion(+) 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": [ ], -- 2.45.2