Skip to content
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

Apply {common}{ros2} Add ROS opt prefix to PYTHONPATH to scarthgap #1277

Open
wants to merge 1 commit into
base: scarthgap
Choose a base branch
from

Conversation

DasRoteSkelett
Copy link
Contributor

This is a fix from @robwoolley missing in scathgap causing ament-cmake-core to fail

In order for Python to find modules in the recipe-sysroot we must add the path to PYTHONPATH.  However, we must prepend the path to any previous values of PYTHONPATH.

We cannot refer to the variable in its own definition since bitbake does not evaluate strings in that way.

Instead we must mimick python3targetconfig.bbclass and prepend to the recipe tasks to conditionally set PYTHONPATH in the shell context.

In order for Python to find modules in the recipe-sysroot
we must add the path to PYTHONPATH.  However, we must prepend
the path to any previous values of PYTHONPATH.

We cannot refer to the variable in its own definition since
bitbake does not evaluate strings in that way.

Instead we must mimick python3targetconfig.bbclass and
prepend to the recipe tasks to conditionally set PYTHONPATH
in the shell context.

Signed-off-by: Rob Woolley <[email protected]>
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