MCPcopy Index your code
hub / github.com/ipython/ipython / target_update

Function target_update

setupbase.py:140–149  ·  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

138
139
140def target_update(target, deps, cmd):
141 """Update a target with a given command given a list of dependencies.
142
143 target_update(target,deps,cmd) -> runs cmd if target is outdated.
144
145 This is just a wrapper around target_outdated() which calls the given
146 command if target is outdated."""
147
148 if target_outdated(target, deps):
149 os.system(cmd)
150
151#---------------------------------------------------------------------------
152# VCS related

Callers 1

setup.pyFile · 0.90

Calls 2

target_outdatedFunction · 0.85
systemMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…