/[ascend]/trunk/models/johnpye/fprops/python/SConscript
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/python/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2118 - (show annotations) (download)
Wed Dec 9 05:00:17 2009 UTC (10 years, 9 months ago) by jpye
File size: 541 byte(s)
Fix build for Linux.
1 Import('env')
2
3 pyenv = env.Clone()
4
5 pyenv['LIBS'] = []
6 pyenv['SHLIBSUFFIX'] = '.so'
7 pyenv['SHLIBPREFIX'] = '_'
8
9 import distutils.sysconfig, sys, platform
10
11 if platform.system()=="Windows":
12 python_lib='python%d%d'
13 else:
14 python_lib='python%d.%d'
15
16 fluidc = ['#/%s.c' % f for f in env['fluids']]
17
18 pyenv.SharedLibrary('fprops',['fprops.i','#/helmholtz.c','#/sat.c','#/ideal.c']+fluidc
19 ,LIBPATH=['#']
20 ,CPPPATH=['#',distutils.sysconfig.get_python_inc()]
21 ,LIBS=[python_lib % (sys.version_info[0],sys.version_info[1])]
22 ,SWIGFLAGS=['-python']
23 )
24

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22