(self)
| 1907 | |
| 1908 | class cmd_py2exe(_py2exe): |
| 1909 | def run(self): |
| 1910 | root = get_root() |
| 1911 | cfg = get_config_from_root(root) |
| 1912 | versions = get_versions() |
| 1913 | target_versionfile = cfg.versionfile_source |
| 1914 | print("UPDATING %s" % target_versionfile) |
| 1915 | write_to_version_file(target_versionfile, versions) |
| 1916 | |
| 1917 | _py2exe.run(self) |
| 1918 | os.unlink(target_versionfile) |
| 1919 | with open(cfg.versionfile_source, "w") as f: |
| 1920 | LONG = LONG_VERSION_PY[cfg.VCS] |
| 1921 | f.write(LONG % |
| 1922 | {"DOLLAR": "$", |
| 1923 | "STYLE": cfg.style, |
| 1924 | "TAG_PREFIX": cfg.tag_prefix, |
| 1925 | "PARENTDIR_PREFIX": cfg.parentdir_prefix, |
| 1926 | "VERSIONFILE_SOURCE": cfg.versionfile_source, |
| 1927 | }) |
| 1928 | cmds["py2exe"] = cmd_py2exe |
| 1929 | |
| 1930 | # sdist farms its file list building out to egg_info |
nothing calls this directly
no test coverage detected