Changeset 95
- Timestamp:
- 12/19/06 17:05:10 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/diane/paircomp/python/setup.py
r11 r95 1 1 from distutils.core import setup, Extension 2 import os 2 3 4 # For when we're being run out-of-source 5 # we don't know where libpaircomp is, so we can't provide 6 # the proper dependency information. 7 dependencies = ['../lib/libpaircomplib.a'] 8 for i in xrange(len(dependencies)): 9 if not os.path.exists(dependencies[i]): 10 del dependencies[i] 11 3 12 # the c++ parser extension module (needs to be linked in with libpaircomp.a...) 4 13 parser_mod = Extension("paircomp._paircomp_parser", … … 6 15 include_dirs=['../lib',], 7 16 library_dirs=['../lib',], 8 libraries=['paircomp ', 'stdc++'],9 depends= ['../lib/libpaircomp.a',])17 libraries=['paircomplib', 'stdc++'], 18 depends=dependencies) 10 19 11 20 # the c++ algorithm extension module (needs to be linked in with libpaircomp.a...) … … 14 23 include_dirs=['../lib',], 15 24 library_dirs=['../lib',], 16 libraries=['paircomp ', 'stdc++'],17 depends= ['../lib/libpaircomp.a',])25 libraries=['paircomplib', 'stdc++'], 26 depends=dependencies) 18 27 19 28 # the c++ renderer extension module
