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

Function target_update

setupbase.py:209–218  ·  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

207
208
209def target_update(target,deps,cmd):
210 """Update a target with a given command given a list of dependencies.
211
212 target_update(target,deps,cmd) -> runs cmd if target is outdated.
213
214 This is just a wrapper around target_outdated() which calls the given
215 command if target is outdated."""
216
217 if target_outdated(target,deps):
218 os.system(cmd)
219
220#---------------------------------------------------------------------------
221# Find scripts

Callers 1

setup.pyFile · 0.90

Calls 2

systemMethod · 0.80
target_outdatedFunction · 0.70

Tested by

no test coverage detected