GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mongo-python-driver/hatch_build.py at master · Rogdham/mongo-python-driver Expand file tree/ Copy pathhatch_build.pyMore file actions 36 lines (29 loc) · 1.12 KB / Copy pathhatch_build.pyFile metadata and controls36 lines (29 loc) · 1.12 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 """A custom hatch build hook for pymongo.""" from __future__ import annotations import os import subprocess import sys from pathlib import Path from hatchling.builders.hooks.plugin.interface import BuildHookInterface class CustomHook(BuildHookInterface): """The pymongo build hook.""" def initialize(self, version, build_data): """Initialize the hook.""" if self.target_name == "sdist": return here = Path(__file__).parent.resolve() sys.path.insert(0, str(here)) subprocess.run([sys.executable, "_setup.py", "build_ext", "-i"], check=True) # Ensure wheel is marked as binary and contains the binary files. build_data["infer_tag"] = True build_data["pure_python"] = False if os.name == "nt": patt = ".pyd" else: patt = ".so" for pkg in ["bson", "pymongo"]: dpath = here / pkg for fpath in dpath.glob(f"*{patt}"): relpath = os.path.relpath(fpath, here) build_data["artifacts"].append(relpath) build_data["force_include"][relpath] = relpath |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |