Update build_wheels.sh for Python 3.12 and torch 2.5.1#3
Open
tom-neara wants to merge 1 commit intoNeara-AI:mainfrom
Open
Update build_wheels.sh for Python 3.12 and torch 2.5.1#3tom-neara wants to merge 1 commit intoNeara-AI:mainfrom
tom-neara wants to merge 1 commit intoNeara-AI:mainfrom
Conversation
- Python 3.10 -> 3.12, torch 2.4.1 -> 2.5.1 to match polez requirements - Pin setuptools<70 because mmcv's setup.py imports pkg_resources which was removed in setuptools 70+ - Add --no-build-isolation so the build uses the pinned setuptools - Use cu124 PyTorch index to match CUDA 12.4 toolkit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setuptools<70because mmcv'ssetup.pyimportspkg_resourceswhich was removed in setuptools 70+--no-build-isolationso the build uses the venv's pinned setuptools instead of downloading the latest in an isolated envcu124PyTorch wheel index to match CUDA 12.4 toolkitTest plan
build_wheels.sh wheelhouseend-to-end on a machine with RTX 3090 / CUDA 12.4mmcv-2.1.0.20260302-0torch2.5.1numpy1.26.4-cp312-cp312-linux_x86_64.whl(194M, with CUDA ops)mmdet-3.2.0.20260302-0torch2.5.1numpy1.26.4-py3-none-any.whl(6.8M)mmdet3d-1.4.0.20260302-0torch2.5.1numpy1.26.4-py3-none-any.whl(3.6M)mmengine-0.10.7.20260302-0torch2.5.1numpy1.26.4-py3-none-any.whl(1.7M)torchsparse-1.4.0.20260302-0torch2.5.1numpy1.26.4-cp312-cp312-linux_x86_64.whl(32M)🤖 Generated with Claude Code