MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / cleanup_makefile

Function cleanup_makefile

configure.py:270–281  ·  view source on GitHub ↗

Delete any leftover BUILD files from the Makefile build. These files could interfere with Bazel parsing.

()

Source from the content-addressed store, hash-verified

268
269
270def cleanup_makefile():
271 """Delete any leftover BUILD files from the Makefile build.
272
273 These files could interfere with Bazel parsing.
274 """
275 makefile_download_dir = os.path.join(_TF_WORKSPACE_ROOT, 'tensorflow',
276 'contrib', 'makefile', 'downloads')
277 if os.path.isdir(makefile_download_dir):
278 for root, _, filenames in os.walk(makefile_download_dir):
279 for f in filenames:
280 if f.endswith('BUILD'):
281 os.remove(os.path.join(root, f))
282
283
284def get_var(environ_cp,

Callers 1

mainFunction · 0.85

Calls 2

joinMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected