@@ -109,36 +109,22 @@ def make_python_sdist(
109
109
dist_dir = outdir / "dist"
110
110
dist_dir .mkdir (exist_ok = True )
111
111
112
- # Build sdist for `xgboost-cpu`.
113
- with DirectoryExcursion (ROOT ):
114
- make_pyproject (use_suffix = "cpu" , require_nccl_dep = "na" )
115
- with DirectoryExcursion (ROOT / "python-package" ):
116
- subprocess .run (["python" , "-m" , "build" , "--sdist" ], check = True )
117
- sdist_name = (
118
- f"xgboost_cpu-{ release } { rc } { rc_ver } .tar.gz"
119
- if rc
120
- else f"xgboost_cpu-{ release } .tar.gz"
121
- )
122
- src = DIST / sdist_name
123
- subprocess .run (["twine" , "check" , str (src )], check = True )
124
- dest = dist_dir / sdist_name
125
- shutil .move (src , dest )
126
-
127
- # Build sdist for `xgboost`.
128
- with DirectoryExcursion (ROOT ):
129
- make_pyproject (use_suffix = "na" , require_nccl_dep = "cu12" )
130
-
131
- with DirectoryExcursion (ROOT / "python-package" ):
132
- subprocess .run (["python" , "-m" , "build" , "--sdist" ], check = True )
133
- sdist_name = (
134
- f"xgboost-{ release } { rc } { rc_ver } .tar.gz"
135
- if rc
136
- else f"xgboost-{ release } .tar.gz"
137
- )
138
- src = DIST / sdist_name
139
- subprocess .run (["twine" , "check" , str (src )], check = True )
140
- dest = dist_dir / sdist_name
141
- shutil .move (src , dest )
112
+ # Build sdist for `xgboost-cpu`, `xgboost`.
113
+ for suffix , nccl_dep in [("cpu" , "na" ), ("na" , "na" )]:
114
+ with DirectoryExcursion (ROOT ):
115
+ make_pyproject (use_suffix = suffix , require_nccl_dep = nccl_dep )
116
+ with DirectoryExcursion (ROOT / "python-package" ):
117
+ subprocess .run (["python" , "-m" , "build" , "--sdist" ], check = True )
118
+ pkg_name = "xgboost" if suffix == "na" else f"xgboost_{ suffix } "
119
+ sdist_name = (
120
+ f"{ pkg_name } -{ release } { rc } { rc_ver } .tar.gz"
121
+ if rc
122
+ else f"{ pkg_name } -{ release } .tar.gz"
123
+ )
124
+ src = DIST / sdist_name
125
+ subprocess .run (["twine" , "check" , str (src )], check = True )
126
+ dest = dist_dir / sdist_name
127
+ shutil .move (src , dest )
142
128
143
129
# Build stub package `xgboost-cu12`.
144
130
with DirectoryExcursion (ROOT ):
@@ -166,6 +152,9 @@ def download_python_wheels(branch: str, commit_hash: str, outdir: Path) -> None:
166
152
"macosx_10_15_x86_64" ,
167
153
"macosx_12_0_arm64" ,
168
154
]
155
+ cu13_platforms = [
156
+ "manylinux_2_28_x86_64" ,
157
+ ]
169
158
minimal_platforms = [
170
159
"win_amd64" ,
171
160
"win_arm64" ,
@@ -179,6 +168,7 @@ def download_python_wheels(branch: str, commit_hash: str, outdir: Path) -> None:
179
168
for pkg_name , platforms in [
180
169
("xgboost" , full_platforms ),
181
170
("xgboost_cpu" , minimal_platforms ),
171
+ ("xgboost_cu13" , cu13_platforms ),
182
172
]:
183
173
src_filename_prefix = f"{ pkg_name } -{ args .release } -py3-none-"
184
174
target_filename_prefix = f"{ pkg_name } -{ args .release } -py3-none-"
0 commit comments