Changeset 127 for pypar


Ignore:
Timestamp:
Jul 11, 2005, 11:24:44 PM (19 years ago)
Author:
steve
Message:
 
Location:
pypar
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • pypar/setup.py

    r85 r127  
    5454def _get_mpi_cmd():
    5555    """Returns the output of the command used to compile using
    56     mpicc."""   
     56    mpicc."""
    5757    # LAM
    5858    output = _run_command("mpicc -showme")
     
    9292            output = "cc -L/usr/opt/mpi -lmpi -lelan"
    9393
    94        
     94
    9595    # now get the include, library dirs and the libs to link with.
    9696    flags = string.split(output)
     
    118118    return {'inc_dirs': inc_dirs, 'lib_dirs': lib_dirs, 'libs':libs,
    119119            'def_macros': def_macros, 'undef_macros': undef_macros}
    120        
     120
    121121
    122122if __name__ == "__main__":
    123123    setup_compiler()
    124    
     124
    125125    mpi_flags = get_mpi_flags()
    126126
     
    135135          packages  = ['pypar'],
    136136          ext_modules = [Extension('pypar.mpiext',
    137                                    ['lib/pypar/mpiext.c'],
     137                                   ['mpiext.c'],
    138138                                   include_dirs=mpi_flags['inc_dirs'],
    139139                                   library_dirs=mpi_flags['lib_dirs'],
Note: See TracChangeset for help on using the changeset viewer.