MCPcopy Create free account
hub / github.com/microsoft/debugpy / run

Method run

versioneer.py:1849–1870  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1847
1848 class cmd_build_ext(_build_ext):
1849 def run(self):
1850 root = get_root()
1851 cfg = get_config_from_root(root)
1852 versions = get_versions()
1853 _build_ext.run(self)
1854 if self.inplace:
1855 # build_ext --inplace will only build extensions in
1856 # build/lib<..> dir with no _version.py to write to.
1857 # As in place builds will already have a _version.py
1858 # in the module dir, we do not need to write one.
1859 return
1860 # now locate _version.py in the new build/ directory and replace
1861 # it with an updated value
1862 target_versionfile = os.path.join(self.build_lib,
1863 cfg.versionfile_build)
1864 if not os.path.exists(target_versionfile):
1865 print(f"Warning: {target_versionfile} does not exist, skipping "
1866 "version update. This can happen if you are running build_ext "
1867 "without first running build_py.")
1868 return
1869 print("UPDATING %s" % target_versionfile)
1870 write_to_version_file(target_versionfile, versions)
1871 cmds["build_ext"] = cmd_build_ext
1872
1873 if "cx_Freeze" in sys.modules: # cx_freeze enabled?

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
joinMethod · 0.45

Tested by

no test coverage detected