curve/curvefs_python/README

19 lines
782 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.编译整个工程
2.在curve目录下执行 ./curvefs_python/config.sh
3.编译curvefs库
4.拷贝生成libcurvefs动态库到动态库可以搜索的路径
5.接口封装在curvefs.py中可以通过import curvefs使用
eg
编译整个工程:
bazel build ... --copt -DHAVE_ZLIB=1 --compilation_mode=dbg -s --define=with_glog=true --define=libunwind=true
在curve目录下执行配置脚本
sh ./curvefs_python/config.sh
编译curvefs库需要增加一个linkopt选项指定curvefs_python/tmplib路径
bazel build curvefs_python:curvefs --copt -DHAVE_ZLIB=1 --compilation_mode=dbg -s --define=with_glog=true --define=libunwind=true --linkopt -L/home/hzzhaojianming/curve/curvefs_python/tmplib
编译成功拷贝libcurvefs.so并重命名为_curvefs.so