Changeset 3259
- Timestamp:
- Jun 29, 2006, 3:49:10 PM (18 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r3246 r3259 1 1 import os 2 2 import sys 3 4 env = Environment() 3 5 4 6 # Find the path for Python.h and then share it to other SConscripts later on … … 6 8 if sys.platform == 'win32': #Windows 7 9 python_include = os.path.join(sys.exec_prefix, 'include') 10 # Windows installs need to be told the lib path and the python library name 11 # else it won't work right. 12 python_libdir = os.path.join(sys.exec_prefix, 'libs') 13 try: 14 env['LIBPATH'] = env['LIBPATH'] + [python_libdir] 15 except KeyError: 16 env['LIBPATH'] = [python_libdir] 17 python_libname = 'python%d%d' % (sys.version_info[0], sys.version_info[1]) 18 try: 19 env['LIBS'] = env['LIBS'] + [python_libname] 20 except KeyError: 21 env['LIBS'] = [python_libname] 8 22 else: 9 23 python_include = os.path.join(os.path.join(sys.exec_prefix, 'include'), … … 20 34 package called something like python2.3-dev""" %headerfile 21 35 22 env = Environment()23 36 try: 24 37 env['CPPPATH'] = env['CPPPATH'] + [python_include] 25 38 except KeyError: 26 39 env['CPPPATH'] = [python_include] 40 27 41 Export('env') 28 42 -
inundation/utilities/SConscript
r3246 r3259 1 1 Import('env') 2 2 env.SharedLibrary('polygon_ext', ['polygon_ext.c']) 3 env.SharedLibrary('util_ext', ['util_ext.c'])
Note: See TracChangeset
for help on using the changeset viewer.