Changeset 3555

Show
Ignore:
Timestamp:
10/23/2009 08:49:26 AM (1 month ago)
Author:
brian
Message:

First attempt at gratia plotting tools glue.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nmi/src/glue_gratia.py

    r3496 r3555  
    44import glob 
    55import glue 
     6import shutil 
    67 
    78glue.configure_orig = glue.configure 
     
    910def configure(): 
    1011    glue.configure_orig() 
    11     vdt_loc = os.path.join(os.getcwd(), "vdt") 
    12     glue.run_cmd("sed -i -e 's|$VDT_LOCATION|%s|g' matplotlib*/setup.cfg" % \ 
    13         vdt_loc) 
    14     print glue.run_cmd("cat matplotlib*/setup.cfg") 
    15     print glue.run_cmd("ls -l vdt/libpng/include") 
    16     print glue.run_cmd("ls -l vdt/freetype/include") 
    17     print glue.run_cmd("ls -l vdt/libpng/lib") 
     12    component = os.environ.get('NMI_Gratia_component', 'setup') 
     13    setup_py = os.path.join('setup', '%s.py' % component) 
     14    setup_cfg = os.path.join('setup', '%s.cfg' % component) 
     15    shutil.copy(setup_py, "setup.py") 
     16    shutil.copy(setup_cfg, "setup.cfg") 
    1817 
    1918glue.configure = configure