MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / _write_info

Method _write_info

pipcl.py:1169–1190  ·  view source on GitHub ↗

Writes egg/dist info to files in directory `dirpath` or `self.root` if `None`.

(self, dirpath=None)

Source from the content-addressed store, hash-verified

1167
1168
1169 def _write_info(self, dirpath=None):
1170 '''
1171 Writes egg/dist info to files in directory `dirpath` or `self.root` if
1172 `None`.
1173 '''
1174 if dirpath is None:
1175 dirpath = self.root
1176 log2(f'Creating files in directory {dirpath}')
1177 os.makedirs(dirpath, exist_ok=True)
1178 with open(os.path.join(dirpath, 'PKG-INFO'), 'w') as f:
1179 f.write(self._metainfo())
1180
1181 # These don't seem to be required?
1182 #
1183 #with open(os.path.join(dirpath, 'SOURCES.txt', 'w') as f:
1184 # pass
1185 #with open(os.path.join(dirpath, 'dependency_links.txt', 'w') as f:
1186 # pass
1187 #with open(os.path.join(dirpath, 'top_level.txt', 'w') as f:
1188 # f.write(f'{self.name}\n')
1189 #with open(os.path.join(dirpath, 'METADATA', 'w') as f:
1190 # f.write(self._metainfo())
1191
1192
1193 def handle_argv(self, argv):

Callers 2

_argv_dist_infoMethod · 0.95
_argv_egg_infoMethod · 0.95

Calls 3

_metainfoMethod · 0.95
log2Function · 0.85
writeMethod · 0.45

Tested by

no test coverage detected