(zf, dest, src, ns, checked=True)
| 357 | |
| 358 | |
| 359 | def _write_to_zip(zf, dest, src, ns, checked=True): |
| 360 | pyc = _py_temp_compile(src, dest, ns, checked=checked) |
| 361 | if pyc: |
| 362 | try: |
| 363 | zf.write(str(pyc), dest.with_suffix(".pyc")) |
| 364 | finally: |
| 365 | try: |
| 366 | pyc.unlink() |
| 367 | except: |
| 368 | log_exception("Failed to delete {}", pyc) |
| 369 | return |
| 370 | |
| 371 | zf.write(str(src), str(dest)) |
| 372 | |
| 373 | |
| 374 | def generate_source_files(ns): |
no test coverage detected
searching dependent graphs…