Changeset 1117 for applications/python

Show
Ignore:
Timestamp:
06/28/10 18:04:54 (14 years ago)
Author:
smidl
Message:

python bindings work again... functions _L _D and _M must be removed...

Location:
applications/python
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • applications/python/CMakeLists.txt

    r808 r1117  
    1616link_directories (${BDM_SOURCE_DIR}/bdm) 
    1717 
    18 add_library(itpp_ext SHARED itpp_ext.cpp) 
    19 TARGET_LINK_LIBRARIES(itpp_ext boost_python-mt itpp) 
     18#add_library(itpp_ext SHARED itpp_ext.cpp) 
     19#TARGET_LINK_LIBRARIES(itpp_ext boost_python-mt itpp) 
    2020 
    2121 
    22 #add_library(sqmat_ext SHARED sqmat_ext.cpp) 
    23 #TARGET_LINK_LIBRARIES(sqmat_ext bdm boost_python-mt itpp) 
     22add_library(sqmat_ext SHARED sqmat_ext.cpp) 
     23TARGET_LINK_LIBRARIES(sqmat_ext bdm boost_python itpp ${lapack_libs}) 
  • applications/python/bind_itpp.py

    r808 r1117  
    55 
    66#Creating an instance of class that will help you to expose your declarations 
    7 mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/system/linux/itpp/itbase.h"] 
     7mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/bdm/base/itpp/itbase.h"] 
    88                                      , gccxml_path=r""  
    99                                      , working_directory=r"/home/smidl/work" 
    10                                       , include_paths=['/home/smidl/work/git/mixpp/library/system/linux/itpp/base', '/home/smidl/work/git/mixpp/library/system/linux'] 
     10                                      , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/itpp/base','/home/smidl/work/git/mixpp/library/bdm/base/'] 
    1111                                      , define_symbols=[] ) 
    1212mb.decls( lambda decl: 'Array' in decl.name ).exclude() 
  • applications/python/build_bindings.py

    r808 r1117  
    88                                      , gccxml_path=r""  
    99                                      , working_directory=r"/home/smidl/work/git/mixpp/library/bdm/math" 
    10                                       , include_paths=['/home/smidl/work/git/mixpp/library/system/linux/itpp/base', '/home/smidl/work/git/mixpp/library/system/linux', '/home/smidl/work/git/mixpp/library/bdm/math'] 
     10                                      , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/','/home/smidl/work/git/mixpp/library/bdm/base/itpp/base/', '/home/smidl/work/git/mixpp/library/bdm/math'] 
    1111                                      , define_symbols=[] ) 
    1212 
     13#mb.free_function( 'ltuinv' ).call_policies = call_policies.return_arg( 2 ) 
     14#mb.member_function( '_M' ).call_policies = call_policies.return_self() 
    1315 
    1416#Well, don't you want to see what is going on? 
    15 mb.print_declarations() 
     17#mb.print_declarations() 
    1618 
    1719#Creating code creator. After this step you should not modify/customize declarations.