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

Method patch

pex/pip/tool.py:233–247  ·  view source on GitHub ↗
(
        self,
        pip_version,  # type: PipVersionValue
        target,  # type:  Union[UniversalTarget, MarkerEnvironment]
        requirement_files=None,  # type: Optional[Iterable[str]]
    )

Source from the content-addressed store, hash-verified

231 return self.repos_configuration.password_entries
232
233 def patch(
234 self,
235 pip_version, # type: PipVersionValue
236 target, # type: Union[UniversalTarget, MarkerEnvironment]
237 requirement_files=None, # type: Optional[Iterable[str]]
238 ):
239 # type: (...) -> Optional[DownloadObserver]
240 return package_repositories.patch(
241 repos_configuration=self.repos_configuration.with_contained_repos(
242 requirement_files,
243 fetcher=URLFetcher(network_configuration=self.network_configuration),
244 ),
245 pip_version=pip_version,
246 target=target,
247 )
248
249
250if TYPE_CHECKING:

Callers 8

createMethod · 0.45
_configured_envFunction · 0.45
global_environmentFunction · 0.45
_downloadMethod · 0.45
observe_downloadMethod · 0.45
_spawn_pip_isolatedMethod · 0.45
seed_cacheFunction · 0.45

Calls 2

URLFetcherClass · 0.90
with_contained_reposMethod · 0.80

Tested by

no test coverage detected