Packaging problem
I'm trying to split out some tests from a packages by adding these lines the recipe:
PACKAGES += " ${PN}-tests"
FILES_${PN}-tests = "${libdir}/python*/site-packages/matplotlib/test*" RDEPENDS_${PN}-tests += " python-nose"
This expands (via -e) to:
# $FILES_python-matplotlib-tests
# rename from FILES_${PN}-tests data.py:170 [expandKeys]
# "${libdir}/python*/site-packages/matplotlib/test*"
FILES_python-matplotlib-tests="/usr/lib/python*/site-packages/matplotlib/test*"
When I look at the installed image, I see this:
# ls /usr/lib/python*/site-packages/matplotlib/test* /usr/lib/python2.7/site-packages/matplotlib/testing: __init__.py compare.pyc image_util.py noseclasses.py __init__.pyc decorators.py image_util.pyc noseclasses.pyc compare.py decorators.pyc jpl_units
/usr/lib/python2.7/site-packages/matplotlib/tests:
__init__.py test_colorbar.py test_png.py
__init__.pyc test_colorbar.pyc test_png.pyc
baseline_images test_colors.py test_quiver.py
...It all looks correct to me, but the -tests package is empty.
I'm sure I'm making some silly/rookie mistake. Any pointers?
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 4 lines · Gary Thomas
I'm trying to split out some tests from a packages by adding these lines the recipe:
PACKAGES += " ${PN}-tests" FILES_${PN}-tests = "${libdir}/python*/site-packages/matplotlib/test*" RDEPENDS_${PN}-tests += " python-nose"
...
Quoted 1 line
It all looks correct to me, but the -tests package is empty.
I'd guess that the files get picked up in ${PN}, right?
If so, you'll likely need to prepend PACKAGES instead of appending to it:
PACKAGES =+ " ${PN}-tests"
The first package in PACKAGES that can grab a file will do that...
Hopefully this will help you...
Cheers,
Anders
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB
Quoted 10 lines · Anders Darander
Quoted 4 lines · Gary Thomas
I'm trying to split out some tests from a packages by adding these lines the recipe:
PACKAGES += " ${PN}-tests" FILES_${PN}-tests = "${libdir}/python*/site-packages/matplotlib/test*" RDEPENDS_${PN}-tests += " python-nose"...
Quoted 1 line
It all looks correct to me, but the -tests package is empty.
I'd guess that the files get picked up in ${PN}, right?
Quoted 7 lines
If so, you'll likely need to prepend PACKAGES instead of appending to it:
PACKAGES =+ " ${PN}-tests"The first package in PACKAGES that can grab a file will do that...
Hopefully this will help you...
Perfect, that fixed it :-)
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------