forked from sio2project/sioworkers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (56 loc) · 2.26 KB
/
setup.py
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
from setuptools import setup, find_packages
setup(
name = "sioworkers",
version = '0.92',
author = "SIO2 Project Team",
author_email = '[email protected]',
description = "Programming contest judging infrastructure",
url = 'https://github.com/sio2project/sioworkers',
license = 'GPL',
packages = find_packages(),
namespace_packages = ['sio', 'sio.compilers', 'sio.executors'],
install_requires = [
'filetracker>=0.95',
'simplejson',
'Celery',
],
entry_points = {
'sio.jobs': [
'ping = sio.workers.ping:run',
'compile = sio.compilers.job:run',
'exec = sio.executors.executor:run',
'vcpu-exec = sio.executors.vcpu_exec:run',
'unsafe-exec = sio.executors.unsafe_exec:run',
],
'sio.compilers': [
# Example compiler:
'foo = sio.compilers.template:run',
# Default extension compilers:
'default-c = sio.compilers.gcc:run_default_c',
'default-cc = sio.compilers.gcc:run_default_cpp',
'default-cpp = sio.compilers.gcc:run_default_cpp',
'default-pas = sio.compilers.fpc:run_default',
# Sandboxed compilers:
'c = sio.compilers.gcc:run_gcc',
'gcc = sio.compilers.gcc:run_gcc',
'cpp = sio.compilers.gcc:run_gplusplus',
'g++ = sio.compilers.gcc:run_gplusplus',
'pas = sio.compilers.fpc:run',
'fpc = sio.compilers.fpc:run',
# Non-sandboxed compilers
'system-c = sio.compilers.system_gcc:run_gcc',
'system-gcc = sio.compilers.system_gcc:run_gcc',
'system-cpp = sio.compilers.system_gcc:run_gplusplus',
'system-g++ = sio.compilers.system_gcc:run_gplusplus',
'system-pas = sio.compilers.system_fpc:run',
'system-fpc = sio.compilers.system_fpc:run',
],
'console_scripts': [
'sio-batch = sio.workers.runner:main',
'sio-run-filetracker = sio.workers.ft:launch_filetracker_server',
'sio-get-sandbox = sio.workers.sandbox:main',
'sio-compile = sio.compilers.job:main',
'sio-celery-worker = sio.celery.worker:main',
]
}
)