Clarify Windows support
diff --git a/README.md b/README.md
index b4d1253..b7e7497 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[![codecov](https://codecov.io/gh/messense/rocketmq-python/branch/master/graph/badge.svg)](https://codecov.io/gh/messense/rocketmq-python)
[![PyPI](https://img.shields.io/pypi/v/rocketmq.svg)](https://pypi.org/project/rocketmq)
-RocketMQ Python client
+RocketMQ Python client, based on [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), supports Linux and macOS
## Installation
diff --git a/rocketmq/ffi.py b/rocketmq/ffi.py
index bfbe8a1..d7710a6 100644
--- a/rocketmq/ffi.py
+++ b/rocketmq/ffi.py
@@ -10,6 +10,9 @@
_DYLIB_SUFFIX = '.so'
if sys.platform.lower() == 'darwin':
_DYLIB_SUFFIX = '.dylib'
+elif sys.platform.lower() == 'win32':
+ raise NotImplementedError('rocketmq-python does not support Windows')
+
_CURR_DIR = os.path.abspath(os.path.dirname(__file__))
_PKG_DYLIB_PATH = os.path.join(_CURR_DIR, 'librocketmq' + _DYLIB_SUFFIX)
_DYLIB_PATH = find_library('rocketmq')
@@ -17,6 +20,9 @@
# Prefer packaged librocketmq dylib
_DYLIB_PATH = _PKG_DYLIB_PATH
+if not _DYLIB_PATH:
+ raise ImportError('rocketmq dynamic library not found')
+
dll = ctypes.cdll.LoadLibrary(_DYLIB_PATH)