From e885c631c658dd8f07b51f1b11a373884adad284 Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Wed, 22 Jul 2026 17:42:02 +0200 Subject: [PATCH] Point the setup provisioning at MobilityDB's pgtypes headers MobilityDB vendors the PostgreSQL 18 base headers in its `pgtypes/` library; there is no top-level `postgres/` directory. setup.py sparse-checked out `postgres` and symlinked `meos/postgres` to `_mobilitydb/postgres`, so against current master the sparse-checkout matches nothing and the symlink step aborts with `expected postgres headers at _mobilitydb/postgres`. Sparse-check out `pgtypes` and target the `meos/postgres` symlink at it. The `pgtypes/` tree carries `postgres.h` plus the same `c.h` / `access` / `utils` layout, so `#include ` and `#include ` resolve as before and local catalog generation works against current MobilityDB master. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b66aa5e..e933102 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,8 @@ REPO_URL = "https://github.com/MobilityDB/MobilityDB" CLONE_DIR = Path("_mobilitydb") MEOS_INCLUDE_SRC = CLONE_DIR / "meos" / "include" -POSTGRES_SRC = CLONE_DIR / "postgres" +# PostgreSQL 18 base headers live in MobilityDB's vendored `pgtypes/` library. +POSTGRES_SRC = CLONE_DIR / "pgtypes" MEOS_INCLUDE_DST = Path("meos") / "include" POSTGRES_LINK = Path("meos") / "postgres" @@ -47,7 +48,7 @@ def step_clone(branch: str) -> None: # MEOS_TEMPTYPE_CATALOG. Applied idempotently so existing clones pick # it up on update too. run(["git", "-C", str(CLONE_DIR), "sparse-checkout", "set", - "meos/include", "meos/src", "postgres"]) + "meos/include", "meos/src", "pgtypes"]) print(f" Done.")