|
1 | 1 | { |
2 | | - "_parent_entries": [ [ "^", "byname", "python_script" ] ], |
| 2 | + "_parent_entries": [ [ "^", "byname", "base_build_python_wheel" ] ], |
3 | 3 |
|
4 | 4 | "_producer_rules": [ |
5 | | - [ [ "package_wheel", "package_name=mlperf_loadgen" ], [["get","populated_wheel_entry"]] ], |
| 5 | + [ [ "python_package_wheel", "setup_from_source", "package_name=mlperf_loadgen" ], [["get","populated_wheel_entry"]] ], |
6 | 6 |
|
7 | 7 | [ [ "python_package", "package_name=mlperf_loadgen", "desired_python_version." ], [ ["get_kernel"], ["byname", "pip" ], ["install"]], { |
8 | | - "installable": [ "AS^IS", "^^", "execute", [[ |
| 8 | + "installable": [ "AS^IS", "^^", "execute", [[ |
9 | 9 | [ "get_kernel" ], |
10 | | - [ "byquery", [ "^^", "substitute", "package_wheel,package_name=mlperf_loadgen,desired_python_version===#{desired_python_version}#" ] ], |
11 | | - [ "get_path", "*.whl" ], |
12 | | - 0, |
13 | | - ["func", "glob.glob" ], |
14 | | - [ "__getitem__", 0 ] |
15 | | - ]] ] |
16 | | - } |
| 10 | + [ "byquery", [ "^^", "substitute", "python_package_wheel,setup_from_source,package_name=#{package_name}#,desired_python_version===#{desired_python_version}#" ] ], |
| 11 | + [ "get_path", "*.whl" ], |
| 12 | + 0, |
| 13 | + ["func", "glob.glob" ], |
| 14 | + [ "__getitem__", 0 ] |
| 15 | + ]] ] |
| 16 | + } |
17 | 17 | ] |
18 | 18 | ], |
19 | 19 |
|
20 | | - "python_major_dot_minor": [ "^^", "dig", "python_tool_entry.major_dot_minor" ], |
21 | | - |
22 | 20 | "python_deps": [ |
23 | 21 | [ "^^", "python_sync_pip_package", [[ "python_package", "package_name=setuptools", "installable===\"setuptools<=70.3.0\"" ]] ], |
24 | 22 | [ "^^", "python_sync_pip_package", [[ "python_package", "package_name=wheel" ]] ], |
25 | 23 | [ "^^", "python_sync_pip_package", [[ "python_package", "package_name=pybind11" ]] ] |
26 | 24 | ], |
27 | 25 |
|
28 | | - "wheel_entry": [ "^^", "execute", [[ |
29 | | - [ "get", "__record_entry__" ], |
30 | | - [ "set_path", [ "^^", "substitute", "loadgen_package_wheel_for_python#{python_major_dot_minor}#" ] ], |
31 | | - [ "plant", [ "^^", "substitute", [[ |
32 | | - "package_name", "mlperf_loadgen", |
33 | | - "python_major_dot_minor", "#{python_major_dot_minor}#", |
34 | | - "desired_python_version", "#{python_major_dot_minor}#", |
35 | | - "tags", ["package_wheel"] |
36 | | - ]] ] ], |
37 | | - [ "attach", [ "^", "work_collection" ] ], |
38 | | - [ "save" ] |
39 | | - ]] ], |
40 | | - "wheel_entry_path": [ "^^", "execute", [[ |
41 | | - [ "get", "wheel_entry" ], |
42 | | - [ "get_path" ] |
43 | | - ]] ], |
44 | | - |
45 | 26 | "compiler_path": [ "^", "execute", [[ |
46 | 27 | [ "byquery", "shell_tool,can_compile_c" ], |
47 | 28 | [ "get", "tool_path" ] |
|
51 | 32 | "CC": [ "^^", "get", "compiler_path" ], |
52 | 33 | "CFLAGS": "-std=c++14" |
53 | 34 | }, |
54 | | - "env": [ "^^", "ext_use_python_deps" ], |
55 | 35 |
|
56 | 36 | "in_dir": [ "^", "execute", [[ |
57 | 37 | [ "byquery", "git_repo,repo_name=mlperf_inference_git" ], |
58 | 38 | [ "get_path", "loadgen" ] |
59 | | - ]] ], |
60 | | - "abs_script_path": "setup.py", |
61 | | - "script_extra_params": [ "^^", "substitute", "egg_info --egg-base #{wheel_entry_path}# bdist_wheel -d #{wheel_entry_path}#" ], |
62 | | - |
63 | | - "populated_wheel_entry": [ "^^", "execute", [[ |
64 | | - [ "run" ], |
65 | | - [], |
66 | | - [ "get", "wheel_entry" ] |
67 | 39 | ]] ] |
68 | 40 | } |
0 commit comments