build a wheel with scikit-build-core and drop setuptools - #12
Merged
zeerekahmad merged 1 commit intoAug 18, 2026
Conversation
setuptools cannot build the pybind11 extension, so the wheel is built by scikit-build-core driving the same CMakeLists the ROS2 build uses. cmake.args pins BUILD_TESTING=OFF (the C++ tests are built out-of-band) and forces the non-ament branch, which matters on a machine that happens to have /opt/ros installed: the ROS2 branch would otherwise be selected and then fail on build-env deps like catkin_pkg. Deletes setup.cfg, whose only job was relocating setuptools' script_dir for the ament install layout, and the setuptools build backend along with it. Declares the runtime numpy dependency, an [explorer] extra and a [dev] extra, the kinematic-explorer console script, and a dependency-group that defers to the extras so the pins live in one place. Adds uv.lock, and with it the pyproject version bump the lock records. CI gains a wheel job, since until now the pytest suite only ran under colcon. Co-Authored-By: Claude Opus 5 (1M context) <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.
PR: build a wheel with scikit-build-core and drop setuptools
zeerekahmad/kinematics-wheel-packagingzeerekahmad/kinematics-python-bindingsa15a578Description
setuptools cannot build the pybind11 extension, so the wheel is built by scikit-build-core driving the same
CMakeLists.txtthe ROS2 build uses.cmake.argspinsBUILD_TESTING=OFF(the C++ tests are built out-of-band) and forces the non-ament branch,which matters on a machine that happens to have
/opt/rosinstalled: the ROS2 branch would otherwise beselected and then fail on build-env deps like
catkin_pkg.setup.cfg, whose only job was relocating setuptools'script_dirfor the ament install layout,and the setuptools build backend along with it.
[explorer]extra and a[dev]extra, thekinematic-explorerconsole script, and a dependency-group that defers to the extras so the pins live in one place.
uv.lock, and with it the pyproject version bump the lock records.wheeljob, since until now the pytest suite only ran under colcon.Migration Guide
For anyone installing the Python package outside ROS 2:
uv pip install -e .orpip install .) — the removedsetup.cfg/setuptools backend meanspython setup.pyinvocations no longer work.Related issues
Completeness checklist
Stack created with GitHub Stacks CLI • Give Feedback 💬