From: robk-tahoe <robk-tahoe@allmydata.com>
Date: Thu, 24 Jan 2008 01:23:37 +0000 (-0700)
Subject: fix windows build's packaging of web templates
X-Git-Url: https://git.rkrishnan.org/specifications/%5B/%5D%20/%22doc.html/something?a=commitdiff_plain;h=869cf44f683a2946518da635307a8803ee63df2c;p=tahoe-lafs%2Ftahoe-lafs.git

fix windows build's packaging of web templates

the recent changes to webish's template lookup (to use nevow.util hence
pkg_resources) to support the mac build, needs these changes to the windows
build in match the new lookup path
---

diff --git a/windows/installer.tmpl b/windows/installer.tmpl
index ea3b4359..830b7f58 100644
--- a/windows/installer.tmpl
+++ b/windows/installer.tmpl
@@ -23,7 +23,7 @@ OutputBaseFilename=Allmydata_Tahoe_Setup_v%(major)d_%(minor)d_%(point)d_%(nano)d
 [Files]
 ; contents of 'binaries' dir. (consolidated build target)
 Source: "*.*"; DestDir: "{app}\Install"; Flags: restartreplace replacesameversion uninsrestartdelete
-Source: ".\web\*.*"; DestDir: "{app}\Install\web"; Flags: recursesubdirs
+Source: ".\pkg_resources\*.*"; DestDir: "{app}\Install\pkg_resources"; Flags: recursesubdirs
 Source: ".\winfuse\*.*"; DestDir: "{app}\Install\winfuse"; Flags: recursesubdirs
 
 [Dirs]
diff --git a/windows/setup.py b/windows/setup.py
index 230aa4d3..9ebf9166 100644
--- a/windows/setup.py
+++ b/windows/setup.py
@@ -58,7 +58,7 @@ setup_args = {
     'data_files': [
         ('.', [
         ],),
-        ('web', glob.glob('../src/allmydata/web/*')),
+        ('pkg_resources/allmydata/web', glob.glob('../src/allmydata/web/*')),
         ('winfuse', glob.glob('./winfuse/*')),
     ],
     'zipfile' : 'library.zip',