Skip to content

Commit 7ca9b15

Browse files
committed
fix windows handling
1 parent 9631aa9 commit 7ca9b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def append_libbson_flags(module):
8888
lib_path = os.path.join(lib_dir, bson_lib).replace(os.sep, "/")
8989
if os.path.exists(lib_path):
9090
module.extra_link_args = [lib_path]
91-
include_path = bson_lib.replace(".lib", "")
91+
include_path = "libbson-1.0" if BSON_MAJOR_VERSION == 1 else "bson2"
9292
include_dir = os.path.join(install_dir, "include", include_path).replace(
9393
os.sep, "/"
9494
)

0 commit comments

Comments
 (0)