Skip to content

Commit 46244c1

Browse files
authored
PYTHON-4452 [backport] Fix setuptools version metadata (#816)
PYTHON-4452 Fix setuptools version metadata (#812) * Fix setuptools dynamic version * debug * use str() (cherry picked from commit 7f396b8)
1 parent 3cf9abd commit 46244c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindings/python/pymongocrypt/binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,8 @@ def __getattr__(self, name):
14401440
lib = ffi.dlopen(_PYMONGOCRYPT_LIB)
14411441
else:
14421442
try:
1443-
lib = ffi.dlopen(_path)
1444-
except OSError as exc:
1443+
lib = ffi.dlopen(str(_path))
1444+
except OSError:
14451445
# Fallback to libmongocrypt installed on the system.
14461446
lib = ffi.dlopen('mongocrypt')
14471447
except OSError as exc:

bindings/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies = [
5050
Homepage = "https://github.com/mongodb/libmongocrypt/tree/master/bindings/python"
5151

5252
[tool.setuptools.dynamic]
53-
version = {attr = "pymongocrypt/version.__version__"}
53+
version = {attr = "pymongocrypt.version.__version__"}
5454

5555
[tool.setuptools.packages.find]
5656
include = ["pymongocrypt"]

0 commit comments

Comments
 (0)