-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildout.cfg
99 lines (79 loc) · 2.04 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
[buildout]
extends = versions.cfg
index = http://pypi.camptocamp.net/pypi/
develop-eggs-directory = buildout/develop-eggs
eggs-directory = buildout/eggs
parts-directory = buildout/parts
bin-directory = buildout/bin
versions = versions
parts =
pyramid
modwsgi
template
modwsgi-patch
liblas
develop = .
show-picked-versions = true
newest = false
prefer-final = true
[vars]
instanceid = overwrite_me
serverbase = /${vars:instanceid}
egg = las_extractor
project = las_extractor
interpreter = py
# default language (currently only fr)
default_language = fr
# database user
dbuser = overwriteme
# database password
dbpassword = overwriteme
# database host
dbhost = overwriteme
# database port
dbport = overwriteme
# database name
db = overwrite_me
# LIDAR tool configuration
lidar_fusion_cmd = overwriteme
lidar_lastool_cmd = overwriteme
lidar_data = overwriteme
lidar_data_normalized = overwriteme
intranet_code = overwriteme
liblas = libLAS-1.8.0-cp27-none-win32.whl
[pyramid]
recipe = zc.recipe.egg
dependent-scripts = true
eggs =
pyramid
${vars:egg}
interpreter = ${vars:interpreter}
[modwsgi]
recipe = collective.recipe.modwsgi
eggs = ${vars:egg}
config-file = ${buildout:directory}/production.ini
[template]
recipe = z3c.recipe.filetemplate
source-directory = .
exclude-directories = buildout
extends = vars
[modwsgi-patch]
recipe = collective.recipe.cmd:py
on_install = true
on_update = true
cmds =
>>> import sys, fileinput
>>> platform = sys.platform
>>> src_dir = os.path.join(buildout.get('directory', '.'), 'buildout', 'parts', 'modwsgi', 'wsgi')
>>> if platform == 'win32':
>>> for line in fileinput.input(src_dir, inplace=1):
>>> if line.startswith('configfile'):
>>> print line.replace('\\', '/')
>>> else:
>>> print line
>>> fileinput.close()
[liblas]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = ${buildout:directory}\buildout\bin\pip.exe install ${buildout:directory}\wheels\${vars:liblas}