"""Explicit, reproducible native build: python -m julia.router.build.""" import argparse import os import re from pathlib import Path import shutil import subprocess import tempfile def build(output=None, bend=None, native_cpu=False): source = Path(__file__).parent / 'native' / 'router.bend' bend = bend or shutil.which('bend') or str(Path.home() / '.bend/bin/bend') version = subprocess.check_output([bend, 'version'], text=True).strip() if not re.search(r'(?