Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jun 7, 2024
1 parent 0e41ed3 commit f420141
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bindings/python/hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""A custom hatch build hook for pymongo."""
from __future__ import annotations

import os
import sys
from pathlib import Path
Expand All @@ -17,15 +18,15 @@ def initialize(self, version, build_data):

# Ensure wheel is marked as binary.
# On linux, we use auditwheel to set the name.
if sys.platform == 'darwin':
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '11.0'
if sys.platform == "darwin":
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0"
build_data["tag"] = "py3-none-macosx_11_0_universal2"
patt = ".dylib"
elif os.name == 'nt':
elif os.name == "nt":
build_data["tag"] = "py3-none-win_amd64"
patt = ".dll"
else:
patt = '.so'
patt = ".so"

here = Path(__file__).parent.resolve()
dpath = here / "pymongocrypt"
Expand Down

0 comments on commit f420141

Please sign in to comment.