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

Method find_sources

versioneer.py:1937–1963  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1935
1936 class cmd_egg_info(_egg_info):
1937 def find_sources(self):
1938 # egg_info.find_sources builds the manifest list and writes it
1939 # in one shot
1940 super().find_sources()
1941
1942 # Modify the filelist and normalize it
1943 root = get_root()
1944 cfg = get_config_from_root(root)
1945 self.filelist.append('versioneer.py')
1946 if cfg.versionfile_source:
1947 # There are rare cases where versionfile_source might not be
1948 # included by default, so we must be explicit
1949 self.filelist.append(cfg.versionfile_source)
1950 self.filelist.sort()
1951 self.filelist.remove_duplicates()
1952
1953 # The write method is hidden in the manifest_maker instance that
1954 # generated the filelist and was thrown away
1955 # We will instead replicate their final normalization (to unicode,
1956 # and POSIX-style paths)
1957 from setuptools import unicode_utils
1958 normalized = [unicode_utils.filesys_decode(f).replace(os.sep, '/')
1959 for f in self.filelist.files]
1960
1961 manifest_filename = os.path.join(self.egg_info, 'SOURCES.txt')
1962 with open(manifest_filename, 'w') as fobj:
1963 fobj.write('\n'.join(normalized))
1964
1965 cmds['egg_info'] = cmd_egg_info
1966

Callers

nothing calls this directly

Calls 5

get_rootFunction · 0.85
get_config_from_rootFunction · 0.85
appendMethod · 0.45
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected