(log_file)
| 320 | |
| 321 | |
| 322 | def create_empty_log_file(log_file): |
| 323 | # Normalize unix slashes on Windows |
| 324 | log_file = log_file.replace("/", os.path.sep) |
| 325 | print("[make_installer.py] Create: {file}" |
| 326 | .format(file=short_dst_path(log_file))) |
| 327 | with open(log_file, "wb") as fo: |
| 328 | fo.write("".encode("utf-8")) |
| 329 | # On Linux and Mac chmod so that for cases when package is |
| 330 | # installed using sudo. When wheel package is created it |
| 331 | # will remember file permissions set. |
| 332 | if LINUX or MAC: |
| 333 | command = "chmod 666 {file}".format(file=log_file) |
| 334 | print("[make_installer.py] {command}" |
| 335 | .format(command=command.replace(SETUP_DIR, ""))) |
| 336 | subprocess.check_call(command, shell=True) |
| 337 | |
| 338 | |
| 339 | def copy_cpp_extension_dependencies_issue359(pkg_dir): |
no test coverage detected