A Visual Studio project to build leveldb python wrapper
seems okay full compiled commit in github
Python2.7: Google Drive, Baidu Yun
Python3.6: Google Drive, Baidu Yun
Put the leveldb.pyd
in folder YOUR_PYTHON_ROOT/Lib/site-packages
.
Run python ./test-py-leveldb.py
(python2) or python ./test-py3-leveldb.py
(python3). If everything is ok, you will get hello world
response and a folder named db
.
-
Change the compile mode to Release X64.
-
Modify the python path in the settings (Additional Include Directories, Additional Library Directories, Additional Dependencies).
-
Compile
-
Copy
./x64/Release/leveldb.pyd
toYOUR_PYTHON_ROOT/Lib/site-packages
. -
Run
python ./test-py-leveldb.py
. If everything is ok, you will gethello world
response and a folder nameddb
.
-
Change the python path in the settings (Additional Include Directories, Additional Library Directories, Additional Dependencies).
-
Use this version of
leveldb.def
to replace/win32_impl_src/leveldb.def
: https://github.com/happynear/py-leveldb-windows/blob/5fa0361a46ef0a75123ea785bdb15af1b2e64600/win32_impl_src/leveldb.def .