Bug 12923 - recipetool create error on empty setup.py
Summary: recipetool create error on empty setup.py
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.8 M2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-09-14 12:59 UTC by Gary
Modified: 2019-07-03 20:28 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary 2018-09-14 12:59:03 UTC
recipetool create throws

ERROR: Mismatch between setup.py output lines and number of fields

when there is an empty setup.py in a repo.  recipetool exits and does not produce a recipe file.

Example:

$ recipetool create https://www.bro.org/downloads/binpac-0.50.tar.gz

The check appears to be in create_buildsys_python.py, get_setup_byline().
Comment 1 Ross Burton 2018-09-20 14:36:11 UTC
Presumably recipetool should just check file exists and isn't empty.  No idea why shipping an empty setup.py is sensible though.  That tarball uses cmake, fwiw.