MCPcopy Create free account
hub / github.com/boostorg/build / bootstrap

Function bootstrap

src/kernel/bootstrap.py:9–24  ·  view source on GitHub ↗

Performs python-side bootstrapping of Boost.Build/Python. This function arranges for 'b2.whatever' package names to work, while also allowing to put python files alongside corresponding jam modules.

(root_path)

Source from the content-addressed store, hash-verified

7import sys
8
9def bootstrap(root_path):
10 """Performs python-side bootstrapping of Boost.Build/Python.
11
12 This function arranges for 'b2.whatever' package names to work, while also
13 allowing to put python files alongside corresponding jam modules.
14 """
15
16 m = imp.new_module("b2")
17 # Note that:
18 # 1. If __path__ is not list of strings, nothing will work
19 # 2. root_path is already list of strings.
20 m.__path__ = root_path
21 sys.modules["b2"] = m
22
23 import b2.build_system
24 return b2.build_system.main()
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected