Changeset 665 for trunk/python


Ignore:
Timestamp:
Apr 6, 2007, 6:06:24 PM (18 years ago)
Author:
dkearney
Message:

Updates to Rappture::Utils::progress for all languages
removed the dependancy on Rappture.Units from within number.py, it should only depend on Rappture which will include Rappture.Units
added Rappture.Units as a module to load when people import Rappture in python.
added -V pbs variable to queue.py to include qsub environment variables in the submitted job.
updated setup.py.in to install Rappture.Utils
added progress bar to all app-fermi examples showing how to use the Rappture::Utils::progress function in all languages.
added destructor definitions to Node classes in src2/core

Location:
trunk/python
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/Rappture/PyRpUnits.cc

    r570 r665  
    498498};
    499499
    500 PyDoc_STRVAR(module_doc, "RpUnits Module for Python.");
     500PyDoc_STRVAR(module_doc, "Rappture Units Module for Python.");
    501501
    502502/* Initialization function for the module */
  • trunk/python/Rappture/__init__.py

    r535 r665  
    66import queue as queue
    77import tools as tools
     8import Units
     9import Utils
  • trunk/python/Rappture/number.py

    r115 r665  
    1010# ======================================================================
    1111import Rappture
    12 import Rappture.Units
    1312
    1413class number:
  • trunk/python/Rappture/queue.py

    r579 r665  
    294294#PBS -mn
    295295#PBS -N %s
     296#PBS -V
    296297cd $PBS_O_WORKDIR
    297298
  • trunk/python/setup.py.in

    r548 r665  
    33rp_install_dir = '@prefix@'
    44
    5 module = Extension('Rappture.Units',
     5units_module = Extension('Rappture.Units',
    66                   include_dirs = [rp_install_dir+'/include'],
    77                   sources = [ 'Rappture/PyRpUnits.cc' ],
    88                   library_dirs = [ rp_install_dir+'/lib' ],
    99                   libraries = [ 'rappture', 'scew' ] )
     10
     11utils_module = Extension('Rappture.Utils',
     12                   include_dirs = [rp_install_dir+'/include'],
     13                   sources = [ 'Rappture/PyRpUtils.cc' ],
     14                   library_dirs = [ rp_install_dir+'/lib' ],
     15                   libraries = [ 'rappture' ] )
    1016
    1117setup(  name='Rappture',
     
    2026                     'Rappture.tools',
    2127                     'Rappture.result'],
    22         ext_modules=[module]
     28        ext_modules=[   units_module,
     29                        utils_module    ]
    2330  )
Note: See TracChangeset for help on using the changeset viewer.