MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / run

Method run

versioneer.py:1843–1857  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1841
1842 class cmd_build_py(_build_py):
1843 def run(self):
1844 root = get_root()
1845 cfg = get_config_from_root(root)
1846 versions = get_versions()
1847 _build_py.run(self)
1848 if getattr(self, "editable_mode", False):
1849 # During editable installs `.py` and data files are
1850 # not copied to build_lib
1851 return
1852 # now locate _version.py in the new build/ directory and replace
1853 # it with an updated value
1854 if cfg.versionfile_build:
1855 target_versionfile = os.path.join(self.build_lib, cfg.versionfile_build)
1856 print("UPDATING %s" % target_versionfile)
1857 write_to_version_file(target_versionfile, versions)
1858
1859 cmds["build_py"] = cmd_build_py
1860

Callers

nothing calls this directly

Calls 5

get_rootFunction · 0.85
get_config_from_rootFunction · 0.85
write_to_version_fileFunction · 0.85
get_versionsFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected