(build_ext)
| 723 | |
| 724 | |
| 725 | def pip_run(build_ext): |
| 726 | if SKIP_BAZEL_BUILD or setup_spec.build_type == BuildType.DEPS_ONLY: |
| 727 | build(False, False, False, False) |
| 728 | else: |
| 729 | build(BUILD_CORE, BUILD_JAVA, BUILD_CPP, BUILD_REDIS) |
| 730 | |
| 731 | if setup_spec.type == SetupType.RAY: |
| 732 | if setup_spec.build_type == BuildType.DEPS_ONLY: |
| 733 | setup_spec.files_to_include = [] |
| 734 | return |
| 735 | setup_spec.files_to_include += ray_files |
| 736 | |
| 737 | thirdparty_dir = os.path.join(ROOT_DIR, THIRDPARTY_SUBDIR) |
| 738 | setup_spec.files_to_include += _walk_thirdparty_dir(thirdparty_dir) |
| 739 | |
| 740 | runtime_env_agent_thirdparty_dir = os.path.join( |
| 741 | ROOT_DIR, RUNTIME_ENV_AGENT_THIRDPARTY_SUBDIR |
| 742 | ) |
| 743 | setup_spec.files_to_include += _walk_thirdparty_dir( |
| 744 | runtime_env_agent_thirdparty_dir |
| 745 | ) |
| 746 | |
| 747 | # Copy over the autogenerated protobuf Python bindings. |
| 748 | for directory in generated_python_directories: |
| 749 | for filename in os.listdir(directory): |
| 750 | if filename[-3:] == ".py": |
| 751 | setup_spec.files_to_include.append( |
| 752 | os.path.join(directory, filename) |
| 753 | ) |
| 754 | |
| 755 | copied_files = 0 |
| 756 | for filename in setup_spec.files_to_include: |
| 757 | copied_files += copy_file(build_ext.build_lib, filename, ROOT_DIR) |
| 758 | print("# of files copied to {}: {}".format(build_ext.build_lib, copied_files)) |
| 759 | |
| 760 | |
| 761 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…