{"id":20788954,"url":"https://github.com/bfgroup/b2-conan","last_synced_at":"2026-04-20T18:02:45.074Z","repository":{"id":61677334,"uuid":"444664035","full_name":"bfgroup/b2-conan","owner":"bfgroup","description":"A Conan utility to help, and adapt, Conan building to run B2 as needed.","archived":false,"fork":false,"pushed_at":"2022-11-27T03:14:51.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T15:18:48.725Z","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":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfgroup.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["grafikrobot"]}},"created_at":"2022-01-05T04:33:05.000Z","updated_at":"2022-01-05T14:58:55.000Z","dependencies_parsed_at":"2023-01-22T18:15:12.031Z","dependency_job_id":null,"html_url":"https://github.com/bfgroup/b2-conan","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgroup%2Fb2-conan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgroup%2Fb2-conan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgroup%2Fb2-conan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfgroup%2Fb2-conan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfgroup","download_url":"https://codeload.github.com/bfgroup/b2-conan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234494389,"owners_count":18842054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-17T15:18:25.638Z","updated_at":"2026-04-20T18:02:45.062Z","avatar_url":"https://github.com/bfgroup.png","language":"Python","funding_links":["https://github.com/sponsors/grafikrobot"],"categories":[],"sub_categories":[],"readme":"== Overview\n\nA Conan utility to help, and adapt, Conan building to run B2 as needed.\n\n== How To Use\n\nUsing this utility is simple using the\nlink:https://docs.conan.io/en/latest/extending/python_requires.html[`python_requires`]\nConan facility.\n\n[source,python]\n----\nfrom conans import ConanFile, tools\n\nrequired_conan_version = \"\u003e=1.44.0\"\n\n\nclass Package(ConanFile):\n    name = \"my_package\"\n    tool_requires = (\"b2/[\u003e=4.7.0]@\")\n    python_requires = (\"b2-conan/1.0.0@bfgroup/b2-conan\")\n    source_subfolder = \"source_subfolder\"\n\n    def build(self):\n        b2 = self.python_requires[\"b2-conan\"].module.B2(self)\n        sources = os.path.join(self.source_folder, self.source_subfolder)\n        with tools.chdir(sources):\n            b2.build()\n----\n\nThat, when used in your own package that is based on\nlink:https://www.bfgroup.xyz/b2/[B2] will run B2 with the options needed to\nmatch the Conan build variation.\n\nThe  `B2.build` takes a couple of arguments to further control what gets built\nand how:\n\n[source,python]\n----\ndef build(self, args=None, build_dir=None, target=None)\n----\n\n* `args` (Optional, Defaulted to `None`) Extra arguments to invoke B2 with.\n* `build_dir` (Optional, Defaulted to `None`) The intermediate output build\n  directory.\n* `target` (Optional, Defaulted to `None`) A set of one or more targets to build.\n  These are added to the command line invocation directly. And must use the B2\n  target syntax.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfgroup%2Fb2-conan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfgroup%2Fb2-conan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfgroup%2Fb2-conan/lists"}