|
30 | 30 | # Declare your non-python data files: |
31 | 31 | # Files underneath configuration/ will be copied into the build preserving the |
32 | 32 | # subdirectory structure if they exist. |
33 | | -examples = [] |
| 33 | +sagemaker_hyperpod_recipes = [] |
34 | 34 | for root, dirs, files in os.walk( |
35 | | - "src/hyperpod_cli/custom_launcher/examples/custom_script" |
| 35 | + "src/hyperpod_cli/sagemaker_hyperpod_recipes" |
36 | 36 | ): |
37 | | - examples.append( |
38 | | - ( |
39 | | - os.path.relpath(root, "examples/custom_script"), |
40 | | - [os.path.join(root, f) for f in files], |
41 | | - ) |
42 | | - ) |
43 | | - |
44 | | -k8s_templates = [] |
45 | | -for root, dirs, files in os.walk( |
46 | | - "src/hyperpod_cli/custom_launcher/launcher/nemo/k8s_templates" |
47 | | -): |
48 | | - k8s_templates.append( |
49 | | - ( |
50 | | - os.path.relpath( |
51 | | - root, |
52 | | - "src/hyperpod_cli/custom_launcher/launcher/nemo/k8s_templates", |
53 | | - ), |
54 | | - [os.path.join(root, f) for f in files], |
55 | | - ) |
56 | | - ) |
57 | | - |
58 | | -nemo_framework_launcher = [] |
59 | | -for root, dirs, files in os.walk( |
60 | | - "src/hyperpod_cli/custom_launcher/launcher/nemo/nemo_framework_launcher" |
61 | | -): |
62 | | - nemo_framework_launcher.append( |
| 37 | + sagemaker_hyperpod_recipes.append( |
63 | 38 | ( |
64 | 39 | os.path.relpath( |
65 | 40 | root, |
66 | | - "src/hyperpod_cli/custom_launcher/launcher/nemo/nemo_framework_launcher", |
| 41 | + "src/hyperpod_cli/sagemaker_hyperpod_recipes", |
67 | 42 | ), |
68 | 43 | [os.path.join(root, f) for f in files], |
69 | 44 | ) |
70 | 45 | ) |
71 | 46 |
|
72 | 47 | setup( |
73 | | - data_files=examples + k8s_templates + nemo_framework_launcher, |
| 48 | + data_files=sagemaker_hyperpod_recipes, |
74 | 49 | name="hyperpod", |
75 | 50 | version="2.0.0", |
76 | 51 | packages=find_packages(where="src", exclude=("test",)), |
|
0 commit comments