~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: William Grant
  • Date: 2009-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
# This is a command-line application, for use by the administrator.
24
24
# This program is a frontend for the modules in the setup packages that 
25
 
# configure, build and install IVLE in three separate steps.
 
25
# build and install IVLE in separate steps.
26
26
# It is called with at least one argument, which specifies which operation to
27
27
# take.
28
28
 
29
29
import sys
30
 
import setup.configure
31
30
import setup.build
32
31
import setup.install
33
32
 
34
 
 
35
33
def main(argv=None):
36
34
    if argv is None:
37
35
        argv = sys.argv
63
61
        print """Usage: python setup.py operation [options]
64
62
Operation can be:
65
63
    help [operation]
66
 
    config
67
64
    build
68
65
    install
69
66
 
78
75
    try:
79
76
        oper_func = {
80
77
            'help' : help,
81
 
            'config' : setup.configure.configure,
82
78
            'build' : setup.build.build,
83
79
            'install' : setup.install.install,
84
 
            #'updatejails' : None,
85
80
        }[operation]
86
81
    except KeyError:
87
82
        print >>sys.stderr, (