MCPcopy
hub / github.com/Nuitka/Nuitka / checkDistributionMetadataRecord

Function checkDistributionMetadataRecord

nuitka/utils/Distributions.py:204–221  ·  view source on GitHub ↗
(package_dir, distribution)

Source from the content-addressed store, hash-verified

202
203
204def checkDistributionMetadataRecord(package_dir, distribution):
205 problems = 0
206 ok = 0
207
208 for record in _getDistributionMetadataRecordData(distribution):
209 filename = os.path.join(package_dir, "..", record[0])
210
211 if not isFilenameBelowPath(path=package_dir, filename=filename):
212 continue
213
214 checksum, size = _makeRecordData(filename)
215
216 if checksum != record[1] or size != record[2]:
217 problems += 1
218 else:
219 ok += 1
220
221 return ok, problems
222
223
224def _getDistributionMetadataFileContents(distribution, filename):

Callers 1

Calls 3

isFilenameBelowPathFunction · 0.85
_makeRecordDataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…