Skip to content

setup.cfg: use env python3 as shebang for entry points - #43

Open
vermaete wants to merge 1 commit into
polymathrobotics:mainfrom
vermaete:main
Open

vermaete wants to merge 1 commit into
polymathrobotics:mainfrom
vermaete:main

Conversation

@vermaete

@vermaete vermaete commented Nov 7, 2026

Copy link
Copy Markdown

When building with Yocto/OpenEmbedded, setuptools wrote the absolute path of the build-time Python (from recipe-sysroot-native) into the shebang of the generated replay_test script. That path does not exist on the target, so the script cannot run there, and it also leaks the build directory path into the installed package.

Set the build executable to "/usr/bin/env python3" so the interpreter is resolved at runtime.

When building with Yocto/OpenEmbedded, setuptools wrote the absolute
path of the build-time Python (from recipe-sysroot-native) into the
shebang of the generated replay_test script. That path does not exist
on the target, so the script cannot run there, and it also leaks the
build directory path into the installed package.

Set the build executable to "/usr/bin/env python3" so the interpreter
is resolved at runtime.

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
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