(self)
| 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 |
nothing calls this directly
no test coverage detected