This repository was archived by the owner on Oct 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpackage.py
More file actions
39 lines (31 loc) · 1.44 KB
/
package.py
File metadata and controls
39 lines (31 loc) · 1.44 KB
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
name = 'puli'
version = '1.7.15'
# If your tool depends on some other package(s)
requires = [
'rez-current',
'python-2.7',
'tornado-2.2.1',
'requests',
'psutil',
'sqlobject',
]
# If you need to define some environment variables
def commands():
# Need to prepend the package root to make package version accessible (and not overidden by other packages like tornado)
env.PYTHONPATH.prepend('{root}')
env.PYTHONPATH.append('{root}/src')
env.PATH.append('{root}')
env.PATH.append('{root}/src/pulitools/puliquery')
env.PATH.append('{root}/src/pulitools/puliexec')
# Create some aliases
# These aliases will be directly available in the shell.
alias('puliexec', 'python {root}/src/pulitools/puliexec/puliexec.py')
alias('pul_rn', 'python {root}/src/pulitools/puliquery/pul_rn')
alias('pul_query', 'python {root}/src/pulitools/puliquery/pul_query')
# Dev tools
# Alias for worker duplicated since workerd is still used by some workers
alias('workerd', 'python {root}/src/octopus/workerd.py')
alias('puli_workerd', 'python {root}/src/octopus/workerd.py')
alias('puli_workerd_dev', 'python {root}/src/octopus/workerd.py -s localhost --debug --console -p 9000 -K /tmp/render/kill9000 -P /tmp/worker9000.pid')
alias('puli_dispatcherd', 'python {root}/src/octopus/dispatcherd.py')
alias('puli_dispatcherd_dev', 'python {root}/src/octopus/dispatcherd.py --debug --console -p 8004')