@@ -109,36 +109,22 @@ def make_python_sdist(
109109 dist_dir = outdir / "dist"
110110 dist_dir .mkdir (exist_ok = True )
111111
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 )
142128
143129 # Build stub package `xgboost-cu12`.
144130 with DirectoryExcursion (ROOT ):
@@ -166,6 +152,9 @@ def download_python_wheels(branch: str, commit_hash: str, outdir: Path) -> None:
166152 "macosx_10_15_x86_64" ,
167153 "macosx_12_0_arm64" ,
168154 ]
155+ cu13_platforms = [
156+ "manylinux_2_28_x86_64" ,
157+ ]
169158 minimal_platforms = [
170159 "win_amd64" ,
171160 "win_arm64" ,
@@ -179,6 +168,7 @@ def download_python_wheels(branch: str, commit_hash: str, outdir: Path) -> None:
179168 for pkg_name , platforms in [
180169 ("xgboost" , full_platforms ),
181170 ("xgboost_cpu" , minimal_platforms ),
171+ ("xgboost_cu13" , cu13_platforms ),
182172 ]:
183173 src_filename_prefix = f"{ pkg_name } -{ args .release } -py3-none-"
184174 target_filename_prefix = f"{ pkg_name } -{ args .release } -py3-none-"
0 commit comments