Skip to content

[ADDON] Add torch c dlpack for macos#256

Merged
tqchen merged 13 commits into
apache:mainfrom
cyx-6:torch-c-dlpack-macos
Nov 12, 2025
Merged

[ADDON] Add torch c dlpack for macos#256
tqchen merged 13 commits into
apache:mainfrom
cyx-6:torch-c-dlpack-macos

Conversation

@cyx-6

@cyx-6 cyx-6 commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

This PR adds the torch c dlpack for macos.

@cyx-6 cyx-6 marked this pull request as ready for review November 12, 2025 07:20
else
python -m wheel tags dist/*.whl --python-tag="$python_version" --abi-tag="$python_version" --platform-tag=macosx_11_0_arm64 --remove
uv pip install delocate
delocate-wheel -v --ignore-missing-dependencies --exclude libtorch.dylib,libtorch_cpu.dylib,libc10.dylib,libtorch_python.dylib dist/*.whl -w wheelhouse

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--exclude might be redundant here, as the building venv does not contain torch related lib. and delocate-wheel will still ask for these libs. actually --ignore-missing-dependencies depresses the such missing libs.

@tqchen tqchen merged commit d6bfb45 into apache:main Nov 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants