/[ascend]/trunk/models/johnpye/extpy/SConscript
ViewVC logotype

Contents of /trunk/models/johnpye/extpy/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 865 - (show annotations) (download)
Thu Sep 28 14:19:17 2006 UTC (14 years, 2 months ago) by johnpye
File size: 452 byte(s)
First success at executing python code from inside ASCEND "IMPORT" statement :-)
1 Import('env')
2 extfn_env = env.Copy()
3
4 srcs = Split("""
5 extpy.c
6 """)
7
8 extfn_env.Append(LIBPATH=['#',env.get('PYTHON_LIBPATH')])
9 extfn_env.Append(LIBS=['ascend',env.get('PYTHON_LIB')])
10 extfn_env.AppendUnique(CPPPATH=[env.get('PYTHON_CPPPATH')])
11
12 targets = []
13 targets.append( extfn_env.SharedLibrary("extpy",srcs) )
14
15 # To run the test, type
16 # ascdev johnpye/extpy/extpytest.py
17
18 # Return the targs
19 env['extfns'] += targets
20
21 # vim: set syntax=python:
22

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