| Message ID | 20260121024723.2634264-4-rob.woolley@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | Package bitbake-setup for PyPI | expand |
On Wed, 21 Jan 2026 at 03:47, Rob Woolley via lists.openembedded.org <rob.woolley=windriver.com@lists.openembedded.org> wrote: > > This wrapper script is used to support the workflow where > bitbake-setup is invoked from the bitbake git repository. > > It uses the directory of the script to find the bitbake_setup > module present in the same git repository. > > Signed-off-by: Rob Woolley <rob.woolley@windriver.com> > --- > bin/bitbake-setup | 11 +++++++++++ > 1 file changed, 11 insertions(+) > create mode 100755 bin/bitbake-setup > > diff --git a/bin/bitbake-setup b/bin/bitbake-setup > new file mode 100755 > index 00000000..e1b1cdd1 > --- /dev/null > +++ b/bin/bitbake-setup > @@ -0,0 +1,11 @@ > +#!/usr/bin/env python3 > +import os > +import sys > + > +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) > +sys.path.insert(0, os.path.join(ROOT,'lib')) > + > +from bitbake_setup.__main__ import main > + > +if __name__ == "__main__": > + main() I'm not sure I understand the rationale for this and the previous patch. Why do we need to convert bitbake-setup into a module, and replace the executable with a wrapper? Alex
diff --git a/bin/bitbake-setup b/bin/bitbake-setup new file mode 100755 index 00000000..e1b1cdd1 --- /dev/null +++ b/bin/bitbake-setup @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import os +import sys + +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, os.path.join(ROOT,'lib')) + +from bitbake_setup.__main__ import main + +if __name__ == "__main__": + main()
This wrapper script is used to support the workflow where bitbake-setup is invoked from the bitbake git repository. It uses the directory of the script to find the bitbake_setup module present in the same git repository. Signed-off-by: Rob Woolley <rob.woolley@windriver.com> --- bin/bitbake-setup | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/bitbake-setup