diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-23 14:45:26 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-23 14:45:54 +0100 |
commit | f510e3d24945935063bea54658af9719e582c52e (patch) | |
tree | ae92d3e048dabe40e6a17331a26b90796cdd29d7 /rules/host-system-python3.make | |
parent | 1f9a4ed3aeb22dd6077a93a75d4615fc32cef1e3 (diff) | |
download | ptxdist-f510e3d24945935063bea54658af9719e582c52e.tar.gz ptxdist-f510e3d24945935063bea54658af9719e582c52e.tar.xz |
host-system-python3: add option for development files
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-system-python3.make')
-rw-r--r-- | rules/host-system-python3.make | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make index aa879ad4d..1fcb927de 100644 --- a/rules/host-system-python3.make +++ b/rules/host-system-python3.make @@ -26,6 +26,12 @@ $(STATEDIR)/host-system-python3.prepare: @$(SYSTEMPYTHON3) -V >/dev/null 2>&1 || \ ptxd_bailout "'python3' not found! Please install."; @echo +ifdef PTXCONF_HOST_SYSTEM_PYTHON3_DEV + @echo "Checking for Python development files ..." + @$(SYSTEMPYTHON3)-config --includes &>/dev/null || \ + ptxd_bailout "Python development files module not found! \ + Please install python-dev (debian)"; +endif ifdef PTXCONF_HOST_SYSTEM_PYTHON3_MAKO @echo "Checking for Python Mako ..." @$(SYSTEMPYTHON3) -c 'import mako' 2>/dev/null || \ |