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

Method add_build_env

scripts/create-packages.py:247–252  ·  view source on GitHub ↗
(self, env: Optional[Dict[str, str]] = None)

Source from the content-addressed store, hash-verified

245 )
246
247 def add_build_env(self, env: Optional[Dict[str, str]] = None) -> Optional[Dict[str, str]]:
248 if not env and not self.build_env:
249 return None
250 build_env = dict(env or os.environ)
251 build_env.update(self.build_env)
252 return build_env
253
254 def __str__(self) -> str:
255 return self._name

Callers 1

build_pex_distsFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected