MCPcopy
hub / github.com/pex-tool/pex / yield_pex_builder

Function yield_pex_builder

tests/test_environment.py:53–58  ·  view source on GitHub ↗
(zip_safe=True, interpreter=None)

Source from the content-addressed store, hash-verified

51
52@contextmanager
53def yield_pex_builder(zip_safe=True, interpreter=None):
54 # type: (bool, Optional[PythonInterpreter]) -> Iterator[PEXBuilder]
55 with temporary_dir() as td, make_bdist("p1", zip_safe=zip_safe, interpreter=interpreter) as p1:
56 pb = PEXBuilder(path=td, interpreter=interpreter)
57 pb.add_dist_location(p1.location)
58 yield pb
59
60
61def assert_force_local_implicit_ns_packages_issues_598(

Calls 4

add_dist_locationMethod · 0.95
temporary_dirFunction · 0.90
make_bdistFunction · 0.90
PEXBuilderClass · 0.90

Tested by

no test coverage detected