Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 59 lines (45 sloc) 1.915 kB
c00e9a6 @b45ch1 improved the readme
authored
1 import distutils.sysconfig
2 import os
3 import numpy
4
d8fd666 @b45ch1 added repeated sparse jacobian driver
authored
5
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
6 # -1: CUSTOMIZE THIS TO FIT YOUR SYSTEM !!!
7 python_include_path= '/usr/include/python2.5'
8
9 adolc_include_path = '/u/walter/workspace/ADOL-C-2.1.0/ADOL-C/src'
10 adolc_library_path = '/u/walter/workspace/ADOL-C-2.1.0/ADOL-C/src/.libs'
11
12 colpack_include_path = '/u/walter/workspace/colpack/build/include'
13 colpack_library_path = '/u/walter/workspace/colpack/build/lib'
14
c00e9a6 @b45ch1 improved the readme
authored
15 LIBS = ['adolc',
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
16 'boost_python',
17 'colpack',
18 ]
c00e9a6 @b45ch1 improved the readme
authored
19 LIBPATH = [
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
20 adolc_library_path,
21 colpack_library_path,
22 ]
c00e9a6 @b45ch1 improved the readme
authored
23 INCLUDEPATH = [
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
24 adolc_include_path,
25 python_include_path,
26 colpack_include_path,
27 ]
c00e9a6 @b45ch1 improved the readme
authored
28
29
d8fd666 @b45ch1 added repeated sparse jacobian driver
authored
30
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
31 # 0: setup the command line parsing
32 AddOption('--prefix',
33 dest='prefix',
34 nargs=1, type='string',
35 action='store',
36 metavar='DIR',
37 help='installation prefix')
2727cc3 updated SConstruct.EXAMPLE
basti authored
38
d8fd666 @b45ch1 added repeated sparse jacobian driver
authored
39
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
40 env = Environment(
41 PREFIX = GetOption('prefix'),
42 TMPBUILD = '/tmp/builddir',
43 CPPPATH=[distutils.sysconfig.get_python_inc(),numpy.get_include()] + INCLUDEPATH,
44 CXXFLAGS="-ftemplate-depth-100 -DBOOST_PYTHON_DYNAMIC_LIB -O2 -Wall",
45 LIBPATH=["/usr/lib/python2.5/config"] + LIBPATH,
46 LIBS= LIBS,
47 RPATH = LIBPATH, #include information where shared libraries can be found to avoid errors like: "ImportError: libboost_python-gcc42-mt-1_34_1.so.1.34.1: cannot open shared object file: No such file or directory"
48 SHLIBPREFIX="", #gets rid of lib prefix
d8fd666 @b45ch1 added repeated sparse jacobian driver
authored
49 )
50
31c0c8e @b45ch1 updated the SConstruct.EXAMPLE with a working version of mine
authored
51 Export('env')
52 Export('adolc_include_path')
53 SConscript('adolc/SConscript')
2143c17 commented sparse build from the sconstruct file,
b45ch1 authored
54 #SConscript('adolc/sparse/SConscript')
d8fd666 @b45ch1 added repeated sparse jacobian driver
authored
55
6b49cfb @b45ch1 saving input and output variables in the forward function of AdolcPro…
authored
56 env.Install( target='./build/adolc/', source = ['adolc/__init__.py','adolc/wrapped_functions.py', 'adolc/cgraph.py','adolc/_adolc.so'])
2143c17 commented sparse build from the sconstruct file,
b45ch1 authored
57 #env.Install( target='./build/adolc/sparse/', source = ['adolc/sparse/__init__.py', 'adolc/sparse/_colpack.so', 'adolc/sparse/wrapped_functions.py'])
8314e6c @b45ch1 merge after pull
authored
58
Something went wrong with that request. Please try again.