Skip to content

Commit 0a996cf

Browse files
committed
modify data files for sagemaker hyperpod recipes
1 parent 4d375c4 commit 0a996cf

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

setup.py

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,47 +30,22 @@
3030
# Declare your non-python data files:
3131
# Files underneath configuration/ will be copied into the build preserving the
3232
# subdirectory structure if they exist.
33-
examples = []
33+
sagemaker_hyperpod_recipes = []
3434
for root, dirs, files in os.walk(
35-
"src/hyperpod_cli/custom_launcher/examples/custom_script"
35+
"src/hyperpod_cli/sagemaker_hyperpod_recipes"
3636
):
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(
6338
(
6439
os.path.relpath(
6540
root,
66-
"src/hyperpod_cli/custom_launcher/launcher/nemo/nemo_framework_launcher",
41+
"src/hyperpod_cli/sagemaker_hyperpod_recipes",
6742
),
6843
[os.path.join(root, f) for f in files],
6944
)
7045
)
7146

7247
setup(
73-
data_files=examples + k8s_templates + nemo_framework_launcher,
48+
data_files=sagemaker_hyperpod_recipes,
7449
name="hyperpod",
7550
version="2.0.0",
7651
packages=find_packages(where="src", exclude=("test",)),

0 commit comments

Comments
 (0)