[Buildroot] [PATCH 3 of 4] manual generation: check dependencies first

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Sep 19 18:57:18 UTC 2013


Dear Thomas De Schampheleire,

On Thu, 19 Sep 2013 18:27:34 +0200, Thomas De Schampheleire wrote:

> I was thinking it could become a separate build target. But at that
> time I didn't fully realize (and didn't check) that these lists are
> actually included in the manual. So, that question is void now.

No problem :)

> Remains: how should we check for python argparse? Module argparse is
> included from python-2.7 and python-3.2 onwards. It seems that Ubuntu
> has been providing python-argparse for older python versions as well,
> but IMO it is not needed to check for this explicitly. If you ask me,
> I would simply check for python 2.7+ and 3.2+, but I'm open for
> discussion.

if ! python -c "import argparse" >/dev/null 2>&1 ; then
	echo "No Python, or argparse not available"
	exit 1
fi

something like that, no? It would cover both cases were argparse is
part of the default Python installation and the cases were argparse was
installed separately.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list