I use winodws10 64bit, so target is x86_64
- DL msys2-x86_64-20180531.exe https://www.msys2.org/
- DL cmake-3.14.2-win64-x64.msi https://cmake.org/download/
- DL leveldb-master https://github.com/google/leveldb
- make
build
folder - execute on build folder: "C:\Program Files\CMake\bin\cmake.exe" -G "MSYS Makefiles" ..
- check1
libleveldb.a
- check2
leveldb
, include many header files
- DL plyvel-master https://github.com/wbolster/plyvel
- make
include
folder and copylibleveldb.a
andleveldb
- rewrite
setup.py
extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11', '-DMS_WIN64']
ext_modules = [
Extension(
'plyvel._plyvel',
language='c++',
include_dirs=['include'],
library_dirs=['include'],
sources=['plyvel/_plyvel.pyx', 'plyvel/comparator.cpp'],
libraries=['leveldb'],
extra_compile_args=extra_compile_args,
)
]
- open MSYS2 terminal and execute:
"path\to\python.exe" setup.py bdist_wheel
- check wheel file in dist folder
- install by wheel
- pip install plyvel-1.0.5-cp36-cp36m-win_amd64.whl
Thank you for writing this up. However I am having a little problem. I navigate to the build folder and execute
"C:\Program Files\CMake\bin\cmake.exe" -G "MSYS Makefiles" ..
But I get the following error
msys is installed in the C drive
cmake is installed
msys directory is in PATH
Help?