{"id":21433560,"url":"https://github.com/limix/build-capi","last_synced_at":"2026-03-10T11:05:31.527Z","repository":{"id":60720802,"uuid":"65853140","full_name":"limix/build-capi","owner":"limix","description":"Build and distribute C/C++ static libraries via Python packages.","archived":false,"fork":false,"pushed_at":"2017-03-29T09:03:49.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-04T06:18:02.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/limix.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}},"created_at":"2016-08-16T20:56:46.000Z","updated_at":"2016-12-06T00:26:33.000Z","dependencies_parsed_at":"2022-10-03T18:51:45.270Z","dependency_job_id":null,"html_url":"https://github.com/limix/build-capi","commit_stats":null,"previous_names":["glimix/build-capi","horta/build-capi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/limix/build-capi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limix%2Fbuild-capi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limix%2Fbuild-capi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limix%2Fbuild-capi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limix%2Fbuild-capi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limix","download_url":"https://codeload.github.com/limix/build-capi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limix%2Fbuild-capi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":"2024-11-22T23:28:47.534Z","updated_at":"2026-03-10T11:05:31.498Z","avatar_url":"https://github.com/limix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# build-capi\n\n[![PyPIl](https://img.shields.io/pypi/l/build-capi.svg?style=flat-square)](https://pypi.python.org/pypi/build-capi/)\n[![PyPIv](https://img.shields.io/pypi/v/build-capi.svg?style=flat-square)](https://pypi.python.org/pypi/build-capi/)\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/build-capi/badges/version.svg)](https://anaconda.org/conda-forge/build-capi)\n\nBuild and distribute C/C++ static libraries via Python packages.\n\n## Getting Started\n\nYou can have a ``setup.py`` similar to\n\n```python\nfrom os.path import join\nfrom setuptools import setup\n\ndef get_lib():\n  from build_capi import CApiLib\n\n  mylib = CApiLib('pkg_name.lib.nmylib',\n                  sources=[join('pkg_name', 'sources', 'example.c')],\n                  include_dirs=[join('pkg_name', 'include')])\n\nsetup(\n      name='pkg_name',\n      # ...\n      setup_requires=['build_capi'],\n      capi_libs=[get_lib],\n      include_package_data=True,\n      data_files=[(join('pkg_name', 'include'), join('pkg_name', 'include',\n                                                     'example.h'))],\n      package_data={'': [join('pkg_name', 'lib', '*.*')]})\n```\n\nand then have a ``pkg_name/__init__.py``\n\n```python\ndef get_include():\n  import pkg_name\n  from os.path import join, dirname\n  return join(dirname(pkg_name.__file__), 'include')\n\ndef get_lib():\n  import pkg_name\n  from os.path import join, dirname\n  return join(dirname(pkg_name.__file__), 'lib')\n```\n\nPlease, refer to [build_capi/example/prj_name](build_capi/example/prj_name)\nfor a minimal example of project using ``build_capi``.\n\n## Install\n\nThe recommended way of installing it is via\n[conda](http://conda.pydata.org/docs/index.html)\n```bash\nconda install -c conda-forge build-capi\n```\n\nAn alternative way would be via pip\n```bash\npip install build-capi\n```\n\n## Authors\n\n* **Danilo Horta** - [https://github.com/Horta](https://github.com/Horta)\n\n## License\n\nThis project is licensed under the MIT License - see the\n[LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimix%2Fbuild-capi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimix%2Fbuild-capi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimix%2Fbuild-capi/lists"}