-
Notifications
You must be signed in to change notification settings - Fork 54
/
buildout.cfg
524 lines (453 loc) · 17.7 KB
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
[buildout]
develop = cmdrunner
virtualenv = digsby-venv
bin-directory = .
home-dir = ${buildout:directory}\${buildout:virtualenv}
develop-eggs-directory = ${buildout:home-dir}\src
downloads-directory = ${buildout:home-dir}\downloads
eggs-directory = ${buildout:home-dir}\lib\site-packages
installed = ${buildout:home-dir}\.installed.cfg
parts-directory = ${buildout:home-dir}\parts
include-dir = ${buildout:home-dir}\PC
lib-dir = ${buildout:home-dir}\PCBuild
dlls-dir = ${buildout:home-dir}\DLLs
python_eggs-parts = python_eggs
gnu-libs-parts = libiconv zlib freetype jpeg
OpenSSL-parts = OpenSSL-checkout OpenSSL-install
socks-parts = socks-checkout socks-install
oauth-parts = oauth-checkout oauth-install
simplejson-parts= simplejson-checkout simplejson-install
protocols-parts = protocols-checkout protocols-install
path_py-parts = path_py-checkout path_py-install
M2Crypto-parts = M2Crypto-checkout M2Crypto-install
ZSI-parts = ZSI-checkout ZSI-install
pysyck-parts = pysyck-install
libxml2-parts = libxml2-checkout libxml2-build libxml2-install
libxslt-parts = libxslt-checkout libxslt-patch libxslt-build libxslt-install
lxml-parts = lxml-checkout lxml-patch lxml-install
jpeg-parts = jpeg-checkout
PIL-parts = PIL
py2exe-parts = py2exe
comtypes-parts = comtypes-checkout comtypes-patch comtypes-install
peak-parts = peak
python-parts =
# Pure python stuff
${buildout:python_eggs-parts}
${buildout:pysyck-parts}
${buildout:socks-parts}
${buildout:path_py-parts}
${buildout:ZSI-parts}
parts =
cmdrunner-install
makedirs
copy-python-libs
${buildout:python-parts}
${buildout:oauth-parts}
${buildout:gnu-libs-parts}
${buildout:PIL-parts}
${buildout:OpenSSL-parts}
${buildout:M2Crypto-parts}
${buildout:libxml2-parts}
${buildout:libxslt-parts}
${buildout:lxml-parts}
${buildout:py2exe-parts}
${buildout:comtypes-parts}
${buildout:simplejson-parts}
${buildout:protocols-parts}
${buildout:peak-parts}
#TODO: curl wx webkit wxpy cgui speedups blist
[cmdrunner-install]
recipe = cmdrunner
path = cmdrunner_install
[makedirs]
recipe = cmdrunner
check_return_code = false
on_install = true
on_update = true
cmds =
mkdir "${buildout:downloads-directory}"
mkdir "${buildout:include-dir}"
mkdir "${buildout:lib-dir}"
mkdir "${buildout:dlls-dir}"
mkdir "${buildout:parts-directory}"
[copy-python-libs]
recipe = cmdrunner:py
on_install = true
on_update = true
cmds =
>>> import distutils.sysconfig, shutil, os, os.path, glob
>>> libs_dir = os.path.join(os.path.dirname(distutils.sysconfig.get_python_inc()), 'libs')
>>> libs = glob.glob(os.path.join(libs_dir, '*.lib'))
>>> for lib in libs:
... shutil.copy(lib, buildout.get('buildout').get('lib-dir'))
[python_eggs]
recipe = cmdrunner
on_install = true
on_update = true
cmds =
pip install distribute requests ClientForm Babel tenjin==0.8.1 certifi dnspython rauth feedparser==4.1 chardet
[libiconv]
recipe = cmdrunner
name = libiconv
version = 1.9.2-1
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${libiconv:name}
lib_foldername = ${libiconv:name}-${libiconv:version}-lib
lib_zipname = ${libiconv:lib_foldername}.zip
lib_download-path = "${buildout:downloads-directory}/${libiconv:lib_zipname}"
lib_url = "http://downloads.sourceforge.net/project/gnuwin32/${libiconv:name}/${libiconv:version}/${libiconv:lib_zipname}"
bin_foldername = ${libiconv:name}-${libiconv:version}-bin
bin_zipname = ${libiconv:bin_foldername}.zip
bin_download-path = "${buildout:downloads-directory}/${libiconv:bin_zipname}"
bin_url = "http://downloads.sourceforge.net/project/gnuwin32/${libiconv:name}/${libiconv:version}/${libiconv:bin_zipname}"
cmds = curl -L ${libiconv:lib_url} --output ${libiconv:lib_download-path}
curl -L ${libiconv:bin_url} --output ${libiconv:bin_download-path}
unzip -o ${libiconv:lib_download-path} -d ${libiconv:parts-dir}
unzip -o ${libiconv:bin_download-path} -d ${libiconv:parts-dir}
cd ${libiconv:parts-dir}
xcopy .\lib\* ${buildout:lib-dir} /S /i /y
xcopy .\bin\* ${buildout:dlls-dir} /S /i /y
xcopy .\include\* ${buildout:include-dir} /S /i /y
cd ${buildout:dlls-dir}
cp libiconv2.dll libiconv.dll
cp libiconv2.dll iconv.dll
cd ${buildout:lib-dir}
cp libiconv.lib libiconv2.lib
cp libiconv.lib iconv.lib
[zlib]
recipe = cmdrunner
name = zlib
version = 1.2.3
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${zlib:name}
lib_foldername = ${zlib:name}-${zlib:version}-lib
lib_zipname = ${zlib:lib_foldername}.zip
lib_download-path = "${buildout:downloads-directory}/${zlib:lib_zipname}"
lib_url = "http://downloads.sourceforge.net/project/gnuwin32/${zlib:name}/${zlib:version}/${zlib:lib_zipname}"
bin_foldername = ${zlib:name}-${zlib:version}-bin
bin_zipname = ${zlib:bin_foldername}.zip
bin_download-path = "${buildout:downloads-directory}/${zlib:bin_zipname}"
bin_url = "http://downloads.sourceforge.net/project/gnuwin32/${zlib:name}/${zlib:version}/${zlib:bin_zipname}"
cmds = curl -L ${zlib:lib_url} --output ${zlib:lib_download-path}
curl -L ${zlib:bin_url} --output ${zlib:bin_download-path}
unzip -o ${zlib:lib_download-path} -d ${zlib:parts-dir}
unzip -o ${zlib:bin_download-path} -d ${zlib:parts-dir}
cd ${zlib:parts-dir}
echo f | xcopy .\lib\zlib.lib .\lib\zlib1.lib /y
xcopy .\lib\* ${buildout:lib-dir} /S /i /y
xcopy .\bin\* ${buildout:dlls-dir} /S /i /y
xcopy .\include\* ${buildout:include-dir} /S /i /y
[freetype]
recipe = cmdrunner
name = freetype
version = 2.3.5-1
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${freetype:name}
lib_foldername = ${freetype:name}-${freetype:version}-lib
lib_zipname = ${freetype:lib_foldername}.zip
lib_download-path = "${buildout:downloads-directory}/${freetype:lib_zipname}"
lib_url = "http://downloads.sourceforge.net/project/gnuwin32/${freetype:name}/${freetype:version}/${freetype:lib_zipname}"
bin_foldername = ${freetype:name}-${freetype:version}-bin
bin_zipname = ${freetype:bin_foldername}.zip
bin_download-path = "${buildout:downloads-directory}/${freetype:bin_zipname}"
bin_url = "http://downloads.sourceforge.net/project/gnuwin32/${freetype:name}/${freetype:version}/${freetype:bin_zipname}"
cmds = curl -L ${freetype:lib_url} --output ${freetype:lib_download-path}
curl -L ${freetype:bin_url} --output ${freetype:bin_download-path}
unzip -o ${freetype:lib_download-path} -d ${freetype:parts-dir}
unzip -o ${freetype:bin_download-path} -d ${freetype:parts-dir}
cd ${freetype:parts-dir}
xcopy .\lib\* ${buildout:lib-dir} /S /i /y
xcopy .\bin\* ${buildout:dlls-dir} /S /i /y
xcopy .\include\* ${buildout:include-dir} /S /i /y
[jpeg]
recipe = cmdrunner
name = jpeg
version = 6b-4
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${jpeg:name}
lib_foldername = ${jpeg:name}-${jpeg:version}-lib
lib_zipname = ${jpeg:lib_foldername}.zip
lib_download-path = "${buildout:downloads-directory}/${jpeg:lib_zipname}"
lib_url = "http://downloads.sourceforge.net/project/gnuwin32/${jpeg:name}/${jpeg:version}/${jpeg:lib_zipname}"
bin_foldername = ${jpeg:name}-${jpeg:version}-bin
bin_zipname = ${jpeg:bin_foldername}.zip
bin_download-path = "${buildout:downloads-directory}/${jpeg:bin_zipname}"
bin_url = "http://downloads.sourceforge.net/project/gnuwin32/${jpeg:name}/${jpeg:version}/${jpeg:bin_zipname}"
cmds = curl -L ${jpeg:lib_url} --output ${jpeg:lib_download-path}
curl -L ${jpeg:bin_url} --output ${jpeg:bin_download-path}
unzip -o ${jpeg:lib_download-path} -d ${jpeg:parts-dir}
unzip -o ${jpeg:bin_download-path} -d ${jpeg:parts-dir}
cd ${jpeg:parts-dir}
xcopy .\lib\* ${buildout:lib-dir} /S /i /y
xcopy .\bin\* ${buildout:dlls-dir} /S /i /y
xcopy .\include\* ${buildout:include-dir} /S /i /y
[OpenSSL-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/tagged/openssl-setup-py.git
rev = origin/master
[OpenSSL-install]
recipe = cmdrunner
on_install = true
on_update = true
cmds = cd ${buildout:parts-directory}/OpenSSL-checkout
python setup.py install
cd ${buildout:home-dir}
xcopy libs ${buildout:lib-dir} /i /y /S
[path_py-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/path.py.git
ref = origin/master
[path_py-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/path_py-checkout
python setup.py install
[ZSI-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/ZSI.git
ref = origin/master
[ZSI-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/ZSI-checkout
python setup.py install
[socks-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/SocksiPy.git
ref = origin/master
[socks-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/socks-checkout
python setup.py install
[oauth-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/oauth.py.git
ref = origin/master
[oauth-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/oauth-checkout
python setup.py install
[simplejson-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/simplejson.git
branch = digsby
[simplejson-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/simplejson-checkout
python setup.py install
[M2Crypto-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/M2Crypto.git
ref = origin/master
[M2Crypto-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/M2Crypto-checkout
python setup.py install
[pysyck-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:directory}/builddeps/msvc2008
unzip -o pysyck_msvc2008_26.zip
xcopy .\syck ${buildout:eggs-directory}\syck /i /y /S
xcopy .\_syck.pyd ${buildout:dlls-dir} /y /S /i
[libxml2-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/libxml2.git
ref = origin/master
[libxml2-build]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/libxml2-checkout/win32
cscript configure.js //E:Javascript vcmanifest=yes python=yes include="${buildout:include-dir}" lib="${buildout:lib-dir}"
nmake -f Makefile.msvc
xcopy bin.msvc ..\bin /S /i /y
cd ..
echo f | xcopy ${buildout:dlls-dir}\libiconv.dll .\bin\iconv.dll /S /y
xcopy .\bin\*.lib ${buildout:lib-dir} /S /i /y
xcopy .\bin\*.dll ${buildout:dlls-dir} /S /i /y
xcopy .\include ${buildout:include-dir} /S /i /y
xcopy .\bin .\python\bin /S /i /y
[libxml2-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/libxml2-checkout/python
set INCLUDE=${buildout:include-dir}
set LIB=${buildout:lib-dir}
python setup.py build_ext install --install-lib="${buildout:eggs-directory}"
[libxslt-checkout]
recipe = cmdrunner
foldername = libxslt-1.1.24
filename = ${libxslt-checkout:foldername}.tar.gz
download-path = ${buildout:downloads-directory}/${libxslt-checkout:filename}
url = http://xmlsoft.org/sources/${libxslt-checkout:filename}
parts-dir = ${buildout:parts-directory}\${libxslt-checkout:foldername}
on_update = true
on_install = true
cmds = cd ${buildout:downloads-directory}
curl -L ${libxslt-checkout:url} --output ${libxslt-checkout:download-path}
tar -xzf ${libxslt-checkout:filename}
xcopy .\${libxslt-checkout:foldername} ${libxslt-checkout:parts-dir} /S /i /y
cd ${libxslt-checkout:parts-dir}\win32
cscript configure.js //E:Javascript vcmanifest=yes include="${buildout:include-dir}" lib="${buildout:lib-dir}"
[libxslt-patch]
recipe = collective.recipe.patch
path = ${buildout:parts-directory}
patches = ${buildout:directory}\digsby\build\patches\libxslt-processOneNode.patch
[libxslt-build]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${libxslt-checkout:parts-dir}\win32
nmake -f Makefile.msvc
[libxslt-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${libxslt-checkout:parts-dir}\win32
xcopy bin.msvc\*.lib ${buildout:lib-dir} /S /i /y
xcopy bin.msvc\*.dll ${buildout:dlls-dir} /S /i /y
cd ..
xcopy libxslt\*.h ${buildout:include-dir}\libxslt /S /i /y
xcopy libexslt\*.h ${buildout:include-dir}\libexslt /S /i /y
[protocols-checkout]
recipe = zerokspot.recipe.git
repository = https://github.com/mikedougherty/PyProtocols.git
rev = origin/master
[protocols-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds = cd ${buildout:parts-directory}/protocols-checkout
python setup.py install
[jpeg-checkout]
recipe = cmdrunner
on_update = true
on_install = true
foldername = jpegsrc.v7
filename = ${jpeg-checkout:foldername}.tar.gz
download-path = ${buildout:downloads-directory}/${jpeg-checkout:filename}
url = http://www.ijg.org/files/${jpeg-checkout:filename}
parts-dir = ${buildout:parts-directory}\${jpeg-checkout:foldername}
[PIL]
recipe = cmdrunner
on_update = true
on_install = true
foldername = Imaging-1.1.6
filename = ${PIL:foldername}.tar.gz
download-path = ${buildout:downloads-directory}/${PIL:filename}
url = http://effbot.org/media/downloads/${PIL:filename}
parts-dir = ${buildout:parts-directory}\${PIL:foldername}
cmds = cd ${buildout:downloads-directory}
curl -L ${PIL:url} --output ${PIL:download-path}
tar -xzf ${PIL:filename}
touch ${buildout:include-dir}\unistd.h
xcopy .\${PIL:foldername} ${PIL:parts-dir} /S /i /y
cd ${PIL:parts-dir}
python setup.py install --install-lib="${buildout:eggs-directory}" --install-scripts="${buildout:home-dir}\Scripts"
xcopy .\build\lib.win32-2.6\*.pyd ${buildout:dlls-dir} /S /i /y
[lxml-checkout]
recipe = cmdrunner
on_update = true
on_install = true
foldername = lxml-2.2
filename = ${lxml-checkout:foldername}.tar.gz
download-path = ${buildout:downloads-directory}/${lxml-checkout:filename}
url = http://pypi.python.org/packages/source/l/lxml/${lxml-checkout:filename}
parts-dir = ${buildout:parts-directory}\${lxml-checkout:foldername}
cmds =
cd ${buildout:downloads-directory}
curl -L ${lxml-checkout:url} --output ${lxml-checkout:download-path}
tar -xzf ${lxml-checkout:filename}
xcopy .\${lxml-checkout:foldername} ${lxml-checkout:parts-dir} /S /i /y
[lxml-patch]
recipe = cmdrunner
on_install = true
on_update = true
cmds =
cd ${lxml-checkout:parts-dir}
patch -p0 -f -i ${buildout:directory}\digsby\build\patches\lxml.patch
[lxml-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds =
cd ${lxml-checkout:parts-dir}
python setup.py build
xcopy .\build\lib.win32-2.6\lxml\*.pyd ${buildout:dlls-dir} /S /i /y
python setup.py install --install-lib="${buildout:eggs-directory}"
[py2exe]
recipe = cmdrunner
name = py2exe
version = 0.6.9
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${py2exe:name}
foldername = ${py2exe:name}-${py2exe:version}
zipname = ${py2exe:foldername}.zip
download-path = "${buildout:downloads-directory}/${py2exe:zipname}"
url = "http://downloads.sourceforge.net/project/py2exe/${py2exe:name}/${py2exe:version}/${py2exe:zipname}"
cmds = curl -L ${py2exe:url} --output ${py2exe:download-path}
unzip -o ${py2exe:download-path} -d ${py2exe:parts-dir}
cd ${py2exe:parts-dir}\${py2exe:foldername}
python setup.py install
[comtypes-checkout]
recipe = cmdrunner
name = comtypes
version = 0.6.0
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${comtypes-checkout:name}
foldername = ${comtypes-checkout:name}-${comtypes-checkout:version}
zipname = ${comtypes-checkout:foldername}.zip
download-path = "${buildout:downloads-directory}/${comtypes-checkout:zipname}"
url = "http://downloads.sourceforge.net/project/${comtypes-checkout:name}/${comtypes-checkout:name}/${comtypes-checkout:version}/${comtypes-checkout:zipname}"
cmds =
curl -L ${comtypes-checkout:url} --output ${comtypes-checkout:download-path}
unzip -o ${comtypes-checkout:download-path} -d ${comtypes-checkout:parts-dir}
[comtypes-patch]
recipe = cmdrunner
on_update = true
on_install = true
cmds =
cd ${comtypes-checkout:parts-dir}\${comtypes-checkout:foldername}
patch -p0 -f -i ${buildout:directory}\digsby\build\msw\comtypes.0.6.0.patch
[comtypes-install]
recipe = cmdrunner
on_update = true
on_install = true
cmds =
cd ${comtypes-checkout:parts-dir}\${comtypes-checkout:foldername}
ls
python setup.py install
[peak]
recipe = cmdrunner
name = peak
on_update = true
on_install = true
parts-dir = ${buildout:parts-directory}\${peak:name}
# TODO: how to get this foldername out of here?
foldername = mikedougherty-peak-1b70df9
zipname = ${peak:name}.zip
download-path = "${buildout:downloads-directory}/${peak:zipname}"
url = https://github.com/mikedougherty/peak/zipball/digsby
cmds =
curl -L ${peak:url} --output ${peak:download-path}
unzip -o ${peak:download-path} -d ${peak:parts-dir}
xcopy ${peak:parts-dir}\${peak:foldername} ${buildout:eggs-directory}\peak /S /i /y