(self)
| 1460 | |
| 1461 | class cmd_build_py(_build_py): |
| 1462 | def run(self): |
| 1463 | root = get_root() |
| 1464 | cfg = get_config_from_root(root) |
| 1465 | versions = get_versions() |
| 1466 | _build_py.run(self) |
| 1467 | # now locate _version.py in the new build/ directory and replace |
| 1468 | # it with an updated value |
| 1469 | if cfg.versionfile_build: |
| 1470 | target_versionfile = os.path.join(self.build_lib, |
| 1471 | cfg.versionfile_build) |
| 1472 | print("UPDATING %s" % target_versionfile) |
| 1473 | write_to_version_file(target_versionfile, versions) |
| 1474 | cmds["build_py"] = cmd_build_py |
| 1475 | |
| 1476 | if "cx_Freeze" in sys.modules: # cx_freeze enabled? |
nothing calls this directly
no test coverage detected