{"id":49451132,"url":"https://github.com/fvutils/ivpm-build","last_synced_at":"2026-04-30T02:40:08.189Z","repository":{"id":354548509,"uuid":"1224115495","full_name":"fvutils/ivpm-build","owner":"fvutils","description":"Project build support factored out of ivpm","archived":false,"fork":false,"pushed_at":"2026-04-29T02:17:00.000Z","size":5381,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T03:44:58.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fvutils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-29T01:19:45.000Z","updated_at":"2026-04-29T02:17:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fvutils/ivpm-build","commit_stats":null,"previous_names":["fvutils/ivpm-build"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fvutils/ivpm-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fivpm-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fivpm-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fivpm-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fivpm-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvutils","download_url":"https://codeload.github.com/fvutils/ivpm-build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fivpm-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-30T02:40:07.580Z","updated_at":"2026-04-30T02:40:08.181Z","avatar_url":"https://github.com/fvutils.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ivpm-build\n\nBuild tooling for Python packages that wrap native C/C++ extensions, with\n[IVPM](https://github.com/fvutils/ivpm) integration for cross-package\ndependency resolution.\n\n`ivpm-build` handles the full native-extension build pipeline:\n\n1. **CMake build** — configure, build, and install native code via `CmakeBuilder`\n2. **Python extension compile** — Cython/C++ extension compilation via a\n   `BuildExt` command that injects include and library paths from IVPM-managed\n   dependencies\n3. **Shared-library packaging** — `InstallLib` copies native `.so`/`.dll`/`.dylib`\n   files into the wheel alongside the Python extension module\n4. **IVPM dependency resolution** — queries the IVPM package registry\n   (`PkgInfoRgy`) to obtain include dirs, library dirs, and Cython `.pxd` files\n   from other IVPM-managed native packages listed in `ivpm.yaml`\n\n## When to use `ivpm-build`\n\nUse `ivpm-build` when your Python package:\n\n- wraps a C/C++ library built with CMake, **and/or**\n- exposes a Cython extension that links against native libraries from other\n  IVPM-managed packages (e.g. `debug-mgr`, `ciostream`, `antlr4-runtime`)\n\n## Installation\n\n```bash\npip install ivpm-build\n```\n\n## Quick Start\n\n### `pyproject.toml` (recommended)\n\n```toml\n[build-system]\nrequires = [\"setuptools\u003e=64\", \"wheel\", \"cython\", \"ivpm-build\", \"ivpm\"]\nbuild-backend = \"setuptools.build_meta\"\n```\n\n### `setup.py`\n\n```python\nfrom ivpm_build.setup import setup   # replaces ivpm.setup.setup\nfrom setuptools import Extension\n\next = Extension(\"mypkg._core\", sources=[\"python/core.pyx\"], language=\"c++\")\n\nsetup(\n    name=\"mypkg\",\n    ext_modules=[ext],\n    ivpm_extdep_pkgs=[\"debug-mgr\", \"ciostream\"],   # IVPM deps → include/lib paths\n    ivpm_extra_data={\n        \"mypkg\": [\n            (\"build/{libdir}/{libpref}mypkg{dllext}\", \"\"),  # bundle native lib\n        ]\n    },\n)\n```\n\n`BuildExt` (injected by `setup()`) automatically resolves include directories,\nlibrary directories, and Cython `.pxd` search paths from each package listed in\n`ivpm_extdep_pkgs` via the IVPM registry.\n\n### CMake-only build\n\n```python\nfrom ivpm_build.cmake import CmakeBuilder\n\nbuilder = CmakeBuilder(proj_dir=\"/path/to/project\")\nbuilder.run()   # cmake configure → build → install\n```\n\n## Integration paths\n\n| Path | When to use |\n|---|---|\n| **Path 1** — swap `from ivpm.setup import setup` → `from ivpm_build.setup import setup` | Existing `setup.py` project, zero-change migration |\n| **Path 2** — `apply_ivpm_setup()` in `setup.py` + `pyproject.toml` metadata | Fine-grained control over extension descriptors |\n| **Path 3** — pure `pyproject.toml` with `build-backend = \"ivpm_build.backend\"` | New projects or full modernisation |\n\nSee the [migration guide](https://fvutils.github.io/ivpm-build/migration.html)\nfor step-by-step instructions.\n\n## Documentation\n\nFull documentation: https://fvutils.github.io/ivpm-build\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvutils%2Fivpm-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvutils%2Fivpm-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvutils%2Fivpm-build/lists"}