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

« back to all changes in this revision

Viewing changes to setup/install.py

Replaced Python config files (conf.py) with new config files system, using
    configobj (INI-file style config files).

setup.py config now produces ./etc/ivle.conf, a new-style config file.
ivle/conf/conf.py is now part of the IVLE source code. It reads the new config
file and provides the same legacy interface, so all of IVLE still functions,
including setup.py config.

Added /etc to the source tree (config files will be stored here).
Added configobj as a dependency in doc/setup/install_proc.txt.

setup.py install copies ./etc/ivle.conf into /etc/ivle/ivle.conf.

Removed boilerplate code generation from setup/configure.py (that code is now
part of ivle/conf/conf.py which is now in the source tree).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
Create $target/bin.
34
34
Copy bin/trampoline/trampoline to $target/bin.
35
35
Copy bin/timount/timount to $target/bin.
 
36
Copy etc/ivle.conf to /etc/ivle/ivle.conf.
36
37
chown and chmod the installed trampoline.
37
38
Copy www/ to $target.
38
39
Copy subjects/ to subjects directory (unless --nosubjects specified).
118
119
    timountpath = os.path.join(lib_path, 'timount')
119
120
    util.action_copyfile('bin/timount/timount', timountpath, dry)
120
121
 
 
122
    ivleconfpath = mip('/etc/ivle/ivle.conf')
 
123
    util.action_copyfile('etc/ivle.conf', ivleconfpath, dry)
 
124
 
121
125
    # Copy in the services (only usrmgt-server is needed on the host, but
122
126
    # the jail build requires the rest).
123
127
    util.action_copylist(install_list.list_services, share_path, dry)