Replace setup.py with pyproject.toml (#9021)
* Create pyproject.toml * Implement a custom build backend (see below) in packager directory. Build logic from setup.py has been refactored and migrated into the new backend. * Tested: pip wheel . (build wheel), python -m build --sdist . (source distribution)
This commit is contained in:
committed by
GitHub
parent
a7b3dd3176
commit
a5cd2412de
@@ -105,7 +105,7 @@ def make_pysrc_wheel(release: str, outdir: str) -> None:
|
||||
os.mkdir(dist)
|
||||
|
||||
with DirectoryExcursion(os.path.join(ROOT, "python-package")):
|
||||
subprocess.check_call(["python", "setup.py", "sdist"])
|
||||
subprocess.check_call(["python", "-m", "build", "--sdist"])
|
||||
src = os.path.join(DIST, f"xgboost-{release}.tar.gz")
|
||||
subprocess.check_call(["twine", "check", src])
|
||||
shutil.move(src, os.path.join(dist, f"xgboost-{release}.tar.gz"))
|
||||
|
||||
Reference in New Issue
Block a user