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

Method run

versioneer.py:1904–1925  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1902
1903 class cmd_build_exe(_build_exe):
1904 def run(self):
1905 root = get_root()
1906 cfg = get_config_from_root(root)
1907 versions = get_versions()
1908 target_versionfile = cfg.versionfile_source
1909 print("UPDATING %s" % target_versionfile)
1910 write_to_version_file(target_versionfile, versions)
1911
1912 _build_exe.run(self)
1913 os.unlink(target_versionfile)
1914 with open(cfg.versionfile_source, "w") as f:
1915 LONG = LONG_VERSION_PY[cfg.VCS]
1916 f.write(
1917 LONG
1918 % {
1919 "DOLLAR": "$",
1920 "STYLE": cfg.style,
1921 "TAG_PREFIX": cfg.tag_prefix,
1922 "PARENTDIR_PREFIX": cfg.parentdir_prefix,
1923 "VERSIONFILE_SOURCE": cfg.versionfile_source,
1924 }
1925 )
1926
1927 cmds["build_exe"] = cmd_build_exe
1928 del cmds["build_py"]

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected