building python support problem

6 views
Skip to first unread message

Bálint Loch

unread,
May 24, 2012, 9:06:49 AM5/24/12
to kfs-...@googlegroups.com
Hi, can you tell me that in the Python building part, when i must modify the kfs_setup.py, which part must i rewrite? 

kfsext = Extension('kfs', include_dirs ['kfs/src/cc/', '<path to boost>']) 
I must write exactly this? ['/kfs/src/cc', '/usr/local/include/boost-1_37/'] ,
what is '/kfs/src/cc/' ???? maybe it must be the path of my kfs project?

and in this part...

runtime_library_dirs = path of my kfs project too? or what?
just leave it as it was?

If i don't do this, i can't use the python scripts?

Thank you! and sorry, I'm just a beginner in this...

张少华

unread,
Jun 4, 2012, 11:35:44 AM6/4/12
to kfs-...@googlegroups.com
hi
include_dirs  you need include the kfs source directory, relative path is permited and also need the path of  boost header file. runtime_library_dirs set the kfs library path and boost library path. not need of your kfs project.    libraries must be set too. (libraries = ['kfsClient', 'boost_regex'] ), get your an example:

kfsext = Extension('kfs',
                include_dirs = ['../', '../../../../include/'], # kfs source path, boost include path
                libraries = ['kfsClient', 'boost_regex'], 
                library_dirs = [kfs_lib_dir], 
                runtime_library_dirs = ['../../../../kfslib', '../../../../lib']    #  kfs ilbraries path, boost library path                                                           ,
                sources = ['KfsModulePy.cc'])

the other step you can see also : doc/COMPILING.txt
the key point of the other step is  export PYTHONPATH and  LD_LIBRARY_PATH.

forgive my pool english!
good luck 

2012/5/24 Bálint Loch <loc...@gmail.com>
Reply all
Reply to author
Forward
0 new messages