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

Method run

versioneer.py:1934–1955  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1932
1933 class cmd_py2exe(_py2exe):
1934 def run(self):
1935 root = get_root()
1936 cfg = get_config_from_root(root)
1937 versions = get_versions()
1938 target_versionfile = cfg.versionfile_source
1939 print("UPDATING %s" % target_versionfile)
1940 write_to_version_file(target_versionfile, versions)
1941
1942 _py2exe.run(self)
1943 os.unlink(target_versionfile)
1944 with open(cfg.versionfile_source, "w") as f:
1945 LONG = LONG_VERSION_PY[cfg.VCS]
1946 f.write(
1947 LONG
1948 % {
1949 "DOLLAR": "$",
1950 "STYLE": cfg.style,
1951 "TAG_PREFIX": cfg.tag_prefix,
1952 "PARENTDIR_PREFIX": cfg.parentdir_prefix,
1953 "VERSIONFILE_SOURCE": cfg.versionfile_source,
1954 }
1955 )
1956
1957 cmds["py2exe"] = cmd_py2exe
1958

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