Delete any leftover BUILD files from the Makefile build. These files could interfere with Bazel parsing.
()
| 268 | |
| 269 | |
| 270 | def 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 | |
| 284 | def get_var(environ_cp, |