Ticket #585: bb-freeze.darcs.patch

File bb-freeze.darcs.patch, 13.1 KB (added by davidsarah, at 2011-01-03T07:01:50Z)

Various hacks to get bb-freeze to mostly work. Do not apply to trunk. refs #585

Line 
11 patch for repository http://tahoe-lafs.org/source/tahoe-lafs/trunk:
2
3Mon Jan  3 06:28:23 GMT Standard Time 2011  david-sarah@jacaranda.org
4  * Various hacks to get bb-freeze to mostly work. Do not apply to trunk. refs #585
5
6New patches:
7
8[Various hacks to get bb-freeze to mostly work. Do not apply to trunk. refs #585
9david-sarah@jacaranda.org**20110103062823
10 Ignore-this: 5e4437383d4dd4a663a79fb2827402e0
11] {
12hunk ./src/allmydata/__init__.py 15
13 # that would be an undocumented property of the setuptools implementation.
14 
15 from allmydata import _auto_deps
16-_auto_deps.require_auto_deps()
17+#_auto_deps.require_auto_deps()
18 
19 # This is just to suppress DeprecationWarnings from nevow and twisted.
20 # See http://allmydata.org/trac/tahoe/ticket/859 and
21hunk ./src/allmydata/__init__.py 178
22     else:
23         return platform.platform()
24 
25-def get_package_versions_from_setuptools():
26-    import pkg_resources
27-    return dict([(p.project_name, (p.version, p.location)) for p in pkg_resources.require(__appname__)])
28-
29 def package_dir(srcfile):
30     return os.path.dirname(os.path.dirname(os.path.normcase(os.path.realpath(srcfile))))
31 
32hunk ./src/allmydata/__init__.py 186
33     # (Python and platform, and sqlite3 if you are on Python >= 2.5), and
34     # because setuptools might fail to find something even though import
35     # finds it:
36-    import OpenSSL, allmydata, foolscap.api, nevow, platform, pycryptopp, setuptools, simplejson, twisted, zfec, zope.interface
37+    import OpenSSL
38+    import allmydata
39+    import foolscap.api
40+    import nevow
41+    import platform
42+    import pycryptopp
43+    import simplejson
44+    import twisted
45+    import zfec
46+    import zope.interface
47     pysqlitever = None
48     pysqlitefile = None
49     sqlitever = None
50hunk ./src/allmydata/__init__.py 221
51         'foolscap': (foolscap.api.__version__, package_dir(foolscap.__file__)),
52         'Nevow': (nevow.__version__, package_dir(nevow.__file__)),
53         'pycryptopp': (pycryptopp.__version__, package_dir(pycryptopp.__file__)),
54-        'setuptools': (setuptools.__version__, package_dir(setuptools.__file__)),
55+        #'setuptools': (setuptools.__version__, package_dir(setuptools.__file__)),
56         'simplejson': (simplejson.__version__, package_dir(simplejson.__file__)),
57         'pysqlite': (pysqlitever, pysqlitefile),
58         'sqlite': (sqlitever, 'unknown'),
59hunk ./src/allmydata/__init__.py 232
60         'platform': (get_platform(), None),
61         }
62 
63-    # But we prefer to get all the dependencies as known by setuptools:
64-    import pkg_resources
65-    try:
66-        d2 = get_package_versions_from_setuptools()
67-    except pkg_resources.DistributionNotFound:
68-        # See docstring in _auto_deps.require_auto_deps() to explain why it makes sense to ignore this exception.
69-        pass
70-    else:
71-        d1.update(d2)
72-
73     return d1
74 
75 def get_package_versions():
76adddir ./windows
77addfile ./windows/tahoe.py
78hunk ./windows/tahoe.py 1
79+from allmydata.util import pkgresutil # override the pkg_resources zip provider for py2exe deployment
80+pkgresutil.install() # this is done before nevow is imported
81hunk ./windows/tahoe.py 4
82+# import dependencies so that py2exe finds them
83+
84+# nevow requires all these for its voodoo module import time adaptor registrations
85+from nevow import accessors, appserver, static, rend, url, util, query, i18n, flat
86+from nevow import guard, stan, testutil, context
87+from nevow.flat import flatmdom, flatstan, twist
88+from formless import webform, processors, annotate, iformless
89+from decimal import Decimal
90+
91+import allmydata.web
92+
93+# junk to appease pyflakes's outrage at py2exe's needs
94+[
95+    accessors, appserver, static, rend, url, util, query, i18n, flat, guard, stan, testutil,
96+    context, flatmdom, flatstan, twist, webform, processors, annotate, iformless, Decimal,
97+    allmydata,
98+]
99+
100+from allmydata.scripts import runner
101+
102+runner.run()
103}
104
105Context:
106
107[bin/tahoe-script.template: On non-Windows, invoke support/bin/tahoe directly as a script (rather than via python), so that 'top' for example will show it as 'tahoe'. On Windows, simplify some code that set argv[0], which is never used. fixes #174
108david-sarah@jacaranda.org**20101127232650
109 Ignore-this: 42a86f3eecfdc1ea7b76a7cc68626898
110]
111[test_runner: avoid unnecessary use of non-ASCII.
112david-sarah@jacaranda.org**20110101100101
113 Ignore-this: e2ff40dce6bb3b021306f2913d4e75df
114]
115[docs/quickstart.html: fix redundant, badly nested tag. refs #1284
116david-sarah@jacaranda.org**20110102175159
117 Ignore-this: 2ae9cc0b47d2e87b9eb64a0f517c4eef
118]
119[docs/quickstart.html: information about 'troublesome dependencies' and 'verified systems' de-emphasized by smaller italic font. Re-wrap so that the HTML source is readable (just about) as text. Minor wording tweaks. Improve organization by adding 'Windows Caveats' subsection. fixes #1284
120david-sarah@jacaranda.org**20110102174212
121 Ignore-this: e9dc57983974478200856651c5318fee
122]
123[NEWS: update entry for removal of Mac and Windows apps. refs #1282
124david-sarah@jacaranda.org**20101226042245
125 Ignore-this: c8099bc6e8235718d042c9a13c1e2425
126]
127[Move dependency imports from windows/depends.py (which has gone away) into src/allmydata/windows/tahoesvc.py. Also fix a pyflakes warning, and change the service display name from 'Allmydata Tahoe Node' to 'Tahoe-LAFS node'. refs #1282
128david-sarah@jacaranda.org**20101226042100
129 Ignore-this: ee45f324934e1251380206dbee6346d0
130]
131[Remove unmaintained Windows GUI app, except for windows/tahoesvc.py which is moved to src/allmydata/windows. refs #1282
132david-sarah@jacaranda.org**20101226040237
133 Ignore-this: cae37b6622a7dd5940acc7d3e6a98b90
134]
135[Remove the Makefile targets relating to the Mac GUI app. refs #1282
136david-sarah@jacaranda.org**20101226025859
137 Ignore-this: 75303be783974b41138744ec62b07965
138]
139[NEWS: remove unmaintained Mac GUI app. refs #1282
140david-sarah@jacaranda.org**20101226020858
141 Ignore-this: 40474a07f4a550b48563d35350be7ab5
142]
143[Remove unmaintained Mac GUI app. fixes #1282
144david-sarah@jacaranda.org**20101226020508
145 Ignore-this: b3613bf1abfd284d542bf7c753ec557a
146]
147[Remove src/allmydata/util/find_exe.py which is no longer used. fixes #1150
148david-sarah@jacaranda.org**20101226023206
149 Ignore-this: 7436c9b53bf210aed34a1a973cd9cace
150]
151[status_web_pages_review.darcs.patch
152freestorm77@gmail.com**20110102034214
153 Ignore-this: 29f1ecb36177f10f3f846b3d56b313b2
154 
155 I make some changes on status web pages
156 
157 status.xhtml:
158 - Delete unused webform_css link
159 - Align tables on the left
160 
161 tahoe-css:
162 - Do some minor changes on code synthax
163 - changes table.status-download-events style to look like other tables
164 
165 status.py:
166 - Align table on the left
167 - Changes table header
168 - Add heading tags
169 - Modify google api graph: add image border, calculate height to feet data
170 
171 signed-off-by: zooko@zooko.com
172 fixes #1219
173]
174[test_storage.py: fix a pyflakes unused import warning.
175david-sarah@jacaranda.org**20101231220756
176 Ignore-this: df08231540cb7dff9d2b038e47ab30ee
177]
178[test_storage.py: leave at least 512 MiB free when running test_large_share. refs #1195
179david-sarah@jacaranda.org**20101231203215
180 Ignore-this: b2144c0341c3452b5d4ba219e284ea0e
181]
182[storage: use fileutil's version of get_disk_stats() and get_available_space(), use mockery/fakery in tests, enable large share test on platforms with sparse files and if > 4 GiB of disk space is currently available
183zooko@zooko.com**20100910173629
184 Ignore-this: 1304f1164c661de6d5304f993eb9b27b
185]
186[fileutil: copy in the get_disk_stats() and get_available_space() functions from storage/server.py
187zooko@zooko.com**20100910173520
188 Ignore-this: 8b15569715f710f4fc5092f7ca109253
189]
190[Update foolscap version requirement to 0.6.0, to address http://foolscap.lothar.com/trac/ticket/167
191david-sarah@jacaranda.org**20101231060039
192 Ignore-this: 98d2b8086a1a500b9f4565bca5a3810
193]
194[docs/webapi.rst: typos.
195david-sarah@jacaranda.org**20101230034422
196 Ignore-this: d1f5166d72cc711f7e0d9981eac9105e
197]
198[docs/webapi.rst: capitalization, formatting of section on URL character encoding, and a correction about Internet Explorer.
199david-sarah@jacaranda.org**20101230034049
200 Ignore-this: b3b9819d2fb264b4cdc5c8afd4e8c48d
201]
202[docs: corrections and clarifications.
203david-sarah@jacaranda.org**20101227051056
204 Ignore-this: e33202858c7644c58f3f924b164294b6
205]
206[docs: more formatting cleanups and corrections. Spell webapi and wapi as web-API.
207david-sarah@jacaranda.org**20101227050533
208 Ignore-this: 18b23cbfb780df585d8a722a1ec63e94
209]
210[docs/debian.rst: bring description of building dependencies from source up-to-date, and change hostname from allmydata.com to tahoe-lafs.org.
211david-sarah@jacaranda.org**20101212222912
212 Ignore-this: f38462afc88b4475195610385a28391c
213]
214[docs/architecture.rst: correct rst syntax.
215david-sarah@jacaranda.org**20101212202003
216 Ignore-this: 3fbe12feb28bec6f1c63aedbc79aad21
217]
218[docs/architecture.rst: formatting.
219david-sarah@jacaranda.org**20101212201719
220 Ignore-this: 305fa5dfc2939355eaf6d0d2161eb1ff
221]
222[docs: linkification, wording improvements.
223david-sarah@jacaranda.org**20101212201234
224 Ignore-this: 4e67287f527a8bc728cfbd93255d2aae
225]
226[docs: formatting.
227david-sarah@jacaranda.org**20101212201115
228 Ignore-this: 2e0ed394ac7726651d3a4f2c4b0d3798
229]
230[docs/configuration.rst: more formatting tweaks; which -> that.
231david-sarah@jacaranda.org**20101212195522
232 Ignore-this: a7becb7021854ca5a90edd892b36fdd7
233]
234[docs/configuration.rst: more changes to formatting.
235david-sarah@jacaranda.org**20101212194511
236 Ignore-this: 491aac33e5f5268d224359f1447d10be
237]
238[docs/configuration.rst: changes to formatting (mainly putting commands and filenames in monospace).
239david-sarah@jacaranda.org**20101212181828
240 Ignore-this: 8a1480e2d5f43bee678476424615b50f
241]
242[scripts/backupdb.py: more accurate comment about path field.
243david-sarah@jacaranda.org**20101212170320
244 Ignore-this: 50e47a2228a85207bbcd188a78a0d4e6
245]
246[scripts/cli.py: fix missing 'put' in usage example for 'tahoe put'.
247david-sarah@jacaranda.org**20101212170207
248 Ignore-this: 2cbadf066fff611fc03d3c0ff97ce6ec
249]
250[docs/frontends/CLI.rst: changes to formatting (mainly putting commands and filenames in monospace), and to command syntax to reflect that DIRCAP/... is accepted. Clarify the syntax of 'tahoe put' and other minor corrections. Tahoe -> Tahoe-LAFS.
251david-sarah@jacaranda.org**20101212165800
252 Ignore-this: a123ef6b564aa8624d1e79c97068ea12
253]
254[docs/frontends/CLI.rst: Unicode arguments to 'tahoe' work on Windows as of v1.7.1.
255david-sarah@jacaranda.org**20101212063740
256 Ignore-this: 3977a99dfa86ac33a44171deaf43aaab
257]
258[docs/known_issues.rst: fix title and linkify another URL. refs #1225
259david-sarah@jacaranda.org**20101212062817
260 Ignore-this: cc91287f7fb51c23440b3d2fe79c449c
261]
262[docs/known_issues.rst: fix an external link. refs #1225
263david-sarah@jacaranda.org**20101212062435
264 Ignore-this: b8cbf12f353131756c358965c48060ec
265]
266[Fix a link from uri.rst to dirnodes.rst. refs #1225
267david-sarah@jacaranda.org**20101212054502
268 Ignore-this: af6205299f5c9a33229cab259c00f9d5
269]
270[Fix a link from webapi.rst to FTP-and-SFTP.rst. refs #1225
271david-sarah@jacaranda.org**20101212053435
272 Ignore-this: 2b9f88678c3447ea860d6b61e8799858
273]
274[More specific hyperlink to architecture.rst from helper.rst. refs #1225
275david-sarah@jacaranda.org**20101212052607
276 Ignore-this: 50424c768fca481252fabf58424852dc
277]
278[Update hyperlinks between docs, and linkify some external references. refs #1225
279david-sarah@jacaranda.org**20101212051459
280 Ignore-this: cd43a4c3d3de1f832abfa88d5fc4ace1
281]
282[docs/specifications/dirnodes.rst: fix references to mutable.rst. refs #1225
283david-sarah@jacaranda.org**20101212012720
284 Ignore-this: 6819b4b4e06e947ee48b365e840db37d
285]
286[docs/specifications/mutable.rst: correct the magic string for v1 mutable containers. refs #1225
287david-sarah@jacaranda.org**20101212011400
288 Ignore-this: 99a5fcdd40cef83dbb08f323f6cdaaca
289]
290[Move .txt files in docs/frontends and docs/specifications to .rst. refs #1225
291david-sarah@jacaranda.org**20101212010251
292 Ignore-this: 8796d35d928370f7dc6ad2dafdc1c0fe
293]
294[Convert docs/frontends and docs/specifications to reStructuredText format (not including file moves).
295david-sarah@jacaranda.org**20101212004632
296 Ignore-this: e3ceb2d832d73875abe48624ddbb5622
297]
298[scripts/cli.py: remove the disclaimer in the help for 'tahoe cp' that it does not handle non-ASCII filenames well. (At least, we intend to handle them.)
299david-sarah@jacaranda.org**20101130002145
300 Ignore-this: 94c003efaa20b9eb4a83503d79844ca
301]
302[relnotes.txt: fifth -> sixth labor-of-love release
303zooko@zooko.com**20101129045647
304 Ignore-this: 21c245015268b38916e3a138d256c09d
305]
306[Makefile: BB_BRANCH is set to the empty string for trunk, not the string 'trunk'.
307david-sarah@jacaranda.org**20101128233512
308 Ignore-this: 5a7ef8eb10475636d21b91e25b56c369
309]
310[relnotes.txt: eleventh -> twelfth release.
311david-sarah@jacaranda.org**20101128223321
312 Ignore-this: 1e26410156a665271c1170803dea2c0d
313]
314[relnotes.tst: point to known_issues.rst, not known_issues.txt.
315david-sarah@jacaranda.org**20101128222918
316 Ignore-this: 60194eb4544cac446fe4f60b3e34b887
317]
318[quickstart.html: fix link to point to allmydata-tahoe-1.8.1.zip.
319david-sarah@jacaranda.org**20101128221728
320 Ignore-this: 7b3ee86f8256aa12f5d862f689f3ee29
321]
322[TAG allmydata-tahoe-1.8.1
323david-sarah@jacaranda.org**20101128212336
324 Ignore-this: 9c18bdeaef4822f590d2a0d879e00621
325]
326Patch bundle hash:
327da6d05c57b0347e69bb44116b6bf6fcb5245f472