Changeset 230 for trunk


Ignore:
Timestamp:
04/21/10 08:22:53 (14 years ago)
Author:
bas
Message:

Fixed a bug in setting the right compiler path for the library, closes #19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.py.in

    r224 r230  
    1111from distutils.core import setup, Extension
    1212
    13 # Try some usefule defaults if not set
     13# Strip off the -L it is also added by the python setup tools
    1414#
    1515PBS_LIB_DIR='@pbs_library_dir@'
     16if PBS_LIB_DIR.startswith('-L'):
     17        PBS_LIB_DIR=PBS_LIB_DIR[2:]
    1618
    1719if not PBS_LIB_DIR:
     
    6769                Extension( '_pbs', ['src/pbs_wrap.c'],
    6870                library_dirs = [ PBS_LIB_DIR ],
    69                 define_macros =  [ (TORQUE_VERSION, None) ],
    70                 libraries = LIBS)
     71                define_macros =  [ (TORQUE_VERSION, None) ])
    7172        ]
    7273)
Note: See TracChangeset for help on using the changeset viewer.