8000 [BE] Remove conda from scripts and build files Part 2 by atalman · Pull Request #145015 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[BE] Remove conda from scripts and build files Part 2 #145015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/scripts/build_triton_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def build_triton(
*,
version: str,
commit_hash: str,
build_conda: bool = False,
device: str = "cuda",
py_version: Optional[str] = None,
release: bool = False,
Expand Down Expand Up @@ -83,55 +82,6 @@ def build_triton(
else:
check_call(["git", "checkout", commit_hash], cwd=triton_basedir)

if build_conda:
with open(triton_basedir / "meta.yaml", "w") as meta:
print(
f"package:\n name: torchtriton\n version: {version}\n",
file=meta,
)
print("source:\n path: .\n", file=meta)
print(
"build:\n string: py{{py}}\n number: 1\n script: cd python; "
"python setup.py install --record=record.txt\n",
" script_env:\n - MAX_JOBS\n",
file=meta,
)
print(
"requirements:\n host:\n - python\n - setuptools\n - pybind11\n"
" run:\n - python\n - filelock\n - pytorch\n",
file=meta,
)
print(
"about:\n home: https://github.com/openai/triton\n license: MIT\n summary:"
" 'A language and compiler for custom Deep Learning operation'",
file=meta,
)

patch_init_py(
triton_pythondir / "triton" / "__init__.py",
version=f"{version}",
)
if py_version is None:
py_version = f"{sys.version_info.major}.{sys.version_info.minor}"
check_call(
[
"conda",
"build",
"--python",
py_version,
"-c",
"pytorch-nightly",
"--output-folder",
tmpdir,
".",
],
cwd=triton_basedir,
env=env,
)
conda_path = next(iter(Path(tmpdir).glob("linux-64/torchtriton*.bz2")))
shutil.copy(conda_path, Path.cwd())
return Path.cwd() / conda_path.name

# change built wheel name and version
env["TRITON_WHEEL_NAME"] = triton_pkg_name
if with_clang_ldd:
Expand Down Expand Up @@ -172,7 +122,6 @@ def main() -> None:

parser = ArgumentParser("Build Triton binaries")
parser.add_argument("--release", action="store_true")
parser.add_argument("--build-conda", action="store_true")
parser.add_argument(
"--device", type=str, default="cuda", choices=["cuda", "rocm", "xpu"]
)
Expand All @@ -188,7 +137,6 @@ def main() -> None:
args.commit_hash if args.commit_hash else read_triton_pin(args.device)
),
version=args.triton_version,
build_conda=args.build_conda,
py_version=args.py_version,
release=args.release,
with_clang_ldd=args.with_clang_ldd,
Expand Down
184 changes: 0 additions & 184 deletions scripts/read_conda_versions.sh

This file was deleted.

52 changes: 0 additions & 52 deletions scripts/release/anaconda-prune/prune.sh

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/release/anaconda-prune/run.sh

This file was deleted.

Loading
Loading
0