Python leveldb wrapper for Caffe & Caffe-builder under Windows
Helper project to compile Python leveldb wrapper under Windows using CMake.
C++ libraries (leveldb and its dependencies) should be taken from Caffe-builder's cache
- Check and setup the configuration in the build_leveldb.bat, e.g
set CAFFE_PATH=C:/Caffe-willyd/install
and optionally
set build_mode=Release
set source_dir_name=py-leveldb-windows
set build_dir_name=%source_dir_name%-build
set install_dir_path=../%source_dir_name%-install
-
Run build_leveldb.bat
-
Copy
%install_dir_path%/leveldb.pyd
and%install_dir_path%/leveldb.lib
to%PYTHON_PATH%/Lib/site-packages
-
Run
python ./test-py-leveldb.py
. If everything is ok, you will gethello world
response and a folder nameddb
. (Test is taken from https://github.com/happynear/py-leveldb-windows)