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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 875 - (show annotations) (download)
Sat Oct 7 06:26:34 2006 UTC (15 years, 10 months ago) by johnpye
File size: 424 byte(s)
Can now access the ASCEND model from an external python script method. The API is not at all nice, but it's basically working now.
1 Import('env')
2 extfn_env = env.Copy()
3
4 srcs = Split("""
5 extpy.c
6 """)
7
8 extfn_env.AppendUnique(
9 LIBPATH=['#',env.get('PYTHON_LIBPATH')]
10 ,LIBS=['ascend',env.get('PYTHON_LIB')]
11 ,CPPPATH=[env.get('PYTHON_CPPPATH')]
12 )
13
14 targets = []
15 targets.append( extfn_env.SharedLibrary("extpy",srcs) )
16
17 # To run the test, type
18 # ascdev johnpye/extpy/extpytest.py
19
20 # Return the targs
21 env['extfns'] += targets
22
23 # vim: set syntax=python:
24

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