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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: mattgiuca
  • Date: 2008-02-05 06:29:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:418
Renamed trunk/console to trunk/scripts. We are now able to put more scripts in
here such as fileservice.
Added fileservice (empty at the moment).
setup.py, consoleservice: Updated so they refer to scripts now instead of
console directory. (This changes listmake and install_list.py as well).

Added remakeuser.py which lets you recreate a user's jail without creating a
DB entry (but the user is already supposed to exist).

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
    # We build two separate lists, by walking www and console
404
404
    list_www = build_list_py_files('www')
405
405
    list_lib = build_list_py_files('lib')
406
 
    list_console = build_list_py_files('console')
 
406
    list_scripts = build_list_py_files('scripts')
407
407
    list_subjects = build_list_py_files('subjects', no_top_level=True)
408
408
    list_problems = build_list_py_files('problems', no_top_level=True)
409
409
    # Make sure that the files generated by conf are in the list
411
411
    if "lib/conf/conf.py" not in list_lib:
412
412
        list_www.append("lib/conf/conf.py")
413
413
    # Make sure that console/python-console is in the list
414
 
    if "console/python-console" not in list_console:
415
 
        list_console.append("console/python-console")
 
414
    if "scripts/python-console" not in list_scripts:
 
415
        list_scripts.append("scripts/python-console")
 
416
    if "scripts/fileservice" not in list_scripts:
 
417
        list_scripts.append("scripts/fileservice")
416
418
    # Write these out to a file
417
419
    cwd = os.getcwd()
418
420
    # the files that will be created/overwritten
436
438
list_lib = """)
437
439
        writelist_pretty(file, list_lib)
438
440
        file.write("""
439
 
# List of all installable files in console directory.
440
 
list_console = """)
441
 
        writelist_pretty(file, list_console)
 
441
# List of all installable files in scripts directory.
 
442
list_scripts = """)
 
443
        writelist_pretty(file, list_scripts)
442
444
        file.write("""
443
445
# List of all installable files in subjects directory.
444
446
# This is to install sample subjects and material.
638
640
    action_mkdir('jail/tmp', dry)
639
641
 
640
642
    # Copy all console and operating system files into the jail
641
 
    action_copylist(install_list.list_console, 'jail/opt/ivle', dry)
 
643
    action_copylist(install_list.list_scripts, 'jail/opt/ivle', dry)
642
644
    copy_os_files_jail(dry)
643
645
    # Chmod the python console
644
 
    action_chmod_x('jail/opt/ivle/console/python-console', dry)
 
646
    action_chmod_x('jail/opt/ivle/scripts/python-console', dry)
 
647
    action_chmod_x('jail/opt/ivle/scripts/fileservice', dry)
645
648
    
646
649
 
647
650
    # Compile .py files into .pyc or .pyo files