lmdb-json 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lmdb_json-0.2.2/lmdb_json.egg-info → lmdb_json-0.2.3}/PKG-INFO +1 -1
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/__init__.py +1 -1
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/binding.py +19 -15
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb10.dll +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3/lmdb_json.egg-info}/PKG-INFO +1 -1
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/pyproject.toml +1 -1
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/LICENSE +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/MANIFEST.in +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/README.rst +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/DB.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_apimask.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_crypto.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_deep.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_keyvault.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/__init__.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/build.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/lmdb.h +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/mdb.c +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/midl.c +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/midl.h +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/serve_api.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/index.0eea9d41.css +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/index.1f1bd6b8.js +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/jsoneditor-icons.45c98bf0.svg +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/vendor.74ed0c5c.js +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/vendor.c8acd9e0.css +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/index.html +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web_auth.py +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/SOURCES.txt +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/dependency_links.txt +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/requires.txt +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/top_level.txt +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/setup.cfg +0 -0
- {lmdb_json-0.2.2 → lmdb_json-0.2.3}/setup.py +0 -0
|
@@ -196,21 +196,25 @@ def _load_library() -> ctypes.CDLL:
|
|
|
196
196
|
except OSError as exc:
|
|
197
197
|
errors.append(f"{path}: {exc}")
|
|
198
198
|
# 所有候选都失败:尝试用包内 C 源码现场编译(跨平台发布场景)。
|
|
199
|
-
#
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
199
|
+
# LMDB_JSON_SKIP_AUTO_BUILD=1 可禁用(测试隔离环境用)。
|
|
200
|
+
# build() 找不到编译器时抛 SystemExit,需一并捕获并转成 MDBError。
|
|
201
|
+
if os.environ.get("LMDB_JSON_SKIP_AUTO_BUILD") != "1":
|
|
202
|
+
try:
|
|
203
|
+
from . import build as _build
|
|
204
|
+
built = _build.build()
|
|
205
|
+
if built:
|
|
206
|
+
for path in _candidate_paths():
|
|
207
|
+
try:
|
|
208
|
+
lib = ctypes.CDLL(path)
|
|
209
|
+
_configure_signatures(lib)
|
|
210
|
+
_LIB = lib
|
|
211
|
+
return lib
|
|
212
|
+
except OSError:
|
|
213
|
+
continue
|
|
214
|
+
except BaseException as exc: # noqa: BLE001 - 含 build() 的 SystemExit
|
|
215
|
+
if isinstance(exc, (KeyboardInterrupt, SystemExit)) and not isinstance(exc, SystemExit):
|
|
216
|
+
raise
|
|
217
|
+
errors.append(f"auto-build: {type(exc).__name__}: {exc}")
|
|
214
218
|
raise MDBError(
|
|
215
219
|
"无法加载 LMDB 原生库,且自动编译失败。请确认系统有 C 编译器,"
|
|
216
220
|
"或设置 LMDB_JSON_NATIVE_LIB 指向已编译的 .dll/.so。\n"
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|