Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8b8f28434a
Fetching contributors…

Cannot retrieve contributors at this time

executable file 58 lines (45 sloc) 1.911 kB
import distutils.sysconfig
import os
import numpy
# -1: CUSTOMIZE THIS TO FIT YOUR SYSTEM !!!
adolc_include_path = '/home/b45ch1/workspace/ADOL-C/trunk/ADOL-C/'
adolc_library_path = '/home/b45ch1/workspace/ADOL-C/trunk/ADOL-C/src/.libs'
colpack_include_path = '/home/b45ch1/workspace/ColPack/build/include'
colpack_lib_path = '/home/b45ch1/workspace/ColPack/build/lib'
LIBS = ['adolc',
'boost_python',
'ColPack',
]
LIBPATH = [
colpack_lib_path,
adolc_library_path,
]
INCLUDEPATH = [
colpack_include_path,
adolc_include_path,
]
# 0: setup the command line parsing
AddOption('--prefix',
dest='prefix',
nargs=1, type='string',
action='store',
metavar='DIR',
help='installation prefix')
env = Environment(
PREFIX = GetOption('prefix'),
TMPBUILD = '/tmp/builddir',
CPPPATH=[distutils.sysconfig.get_python_inc(),numpy.get_include()] + INCLUDEPATH,
CXXFLAGS="-ftemplate-depth-100 -DBOOST_PYTHON_DYNAMIC_LIB -O2 -Wall",
LIBPATH= LIBPATH,
LIBS= LIBS,
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"
SHLIBPREFIX="", #gets rid of lib prefix
)
Export('env')
Export('adolc_include_path')
SConscript('adolc/SConscript')
SConscript('adolc/sparse/SConscript')
SConscript('adolc/colpack/SConscript')
# SConscript('tests/misc_tests/adolc_tiny_unit_test/SConscript')
# env.Install( target='./build/adolc/', source = ['adolc/__init__.py','adolc/wrapped_functions.py', 'adolc/cgraph.py','adolc/_adolc.so'])
#env.Install( target='./build/adolc/sparse/', source = ['adolc/sparse/__init__.py', 'adolc/sparse/_colpack.so', 'adolc/sparse/wrapped_functions.py'])
Jump to Line
Something went wrong with that request. Please try again.