[yocto] Creating a python recipe with devtool
Alan Martinovic
alan.martinovic at senic.com
Wed Feb 7 04:17:21 PST 2018
Hi,
I need to add a python package available on pypi:
https://pypi.python.org/pypi/multiprocessing-logging/
Instead of manually creating the bb file, I'd like to add
it using the devtool flow.
In my build directory I execute:
devtool create-workspace
devtool build-image my-image
devtool add
https://pypi.python.org/packages/65/eb/1c3db9596eddb2bd1d1f8153dcaf2d9f2c7e144f4832d1b1449f681a0a7a/multiprocessing_logging-0.2.6-py2.py3-none-any.whl#md5=b7783a8c449135e5bb344b3f0caa3522
That is the URL for the sources listed here:
https://pypi.python.org/pypi/multiprocessing-logging/
That ends up with an error:
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to
be rerun and all succeeded.
Traceback (most recent call last):
File "/home/alan/senic-os/oe/scripts/recipetool", line 121, in <module>
ret = main()
File "/home/alan/senic-os/oe/scripts/recipetool", line 110, in main
ret = args.func(args)
File "/home/alan/senic-os/oe/scripts/lib/recipetool/create.py",
line 512, in create_recipe
check_single_file(dirlist[0], fetchuri)
File "/home/alan/senic-os/oe/scripts/lib/recipetool/create.py",
line 917, in check_single_file
with open(fn, 'r', errors='surrogateescape') as f:
FileNotFoundError: [Errno 2] No such file or directory:
'multiprocessing_logging-0.2.6-py2.py3-none-any.whl'
What am I missing?
Is the correct URL used?
More information about the yocto
mailing list