Skip to content

chore: allow only system python in pyproject#18

Merged
mojomex merged 1 commit into
mainfrom
chore/no-managed-python
Jan 15, 2026
Merged

chore: allow only system python in pyproject#18
mojomex merged 1 commit into
mainfrom
chore/no-managed-python

Conversation

@mojomex
Copy link
Copy Markdown
Collaborator

@mojomex mojomex commented Jan 15, 2026

As described in #11, uv installs a managed Python version by default. This version can mismatch with the OS Python version, which ROS 2 is linked against. This will result in pybind11 and other ABI errors.

The solution is to force uv to use the system Python installation, using the python-preference setting.

The requires-python setting ensures that the project can only be installed on systems that have a supported Python version. The project will automatically work on newer systems, e.g. Ubuntu 24.04, as well.

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
@mojomex mojomex self-assigned this Jan 15, 2026
@sonarqubecloud
Copy link
Copy Markdown

@mojomex mojomex merged commit 08796e7 into main Jan 15, 2026
2 checks passed
@mojomex mojomex deleted the chore/no-managed-python branch January 15, 2026 10:28
mojomex added a commit that referenced this pull request Jan 28, 2026
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
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.

1 participant