MCPcopy Create free account
hub / github.com/ipython/ipython / target_update

Function target_update

IPython/utils/path.py:354–363  ·  view source on GitHub ↗

Update a target with a given command given a list of dependencies. target_update(target,deps,cmd) -> runs cmd if target is outdated. This is just a wrapper around target_outdated() which calls the given command if target is outdated.

(target,deps,cmd)

Source from the content-addressed store, hash-verified

352
353
354def target_update(target,deps,cmd):
355 """Update a target with a given command given a list of dependencies.
356
357 target_update(target,deps,cmd) -> runs cmd if target is outdated.
358
359 This is just a wrapper around target_outdated() which calls the given
360 command if target is outdated."""
361
362 if target_outdated(target,deps):
363 system(cmd)
364
365
366ENOLINK = 1998

Callers

nothing calls this directly

Calls 2

systemFunction · 0.90
target_outdatedFunction · 0.70

Tested by

no test coverage detected