summaryrefslogtreecommitdiffstats
path: root/rules/host-python3.in
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-01-26 16:49:34 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-01-26 16:49:37 +0100
commitaabfc31c10b222acdd8e4c498a506f35c5b6539e (patch)
treeaba857bfa630e0fb4e795ef8be6bd7e086865535 /rules/host-python3.in
parent19fcd400d4501a2fa04fb927a40ee90253754fa4 (diff)
downloadptxdist-aabfc31c10b222acdd8e4c498a506f35c5b6539e.tar.gz
ptxdist-aabfc31c10b222acdd8e4c498a506f35c5b6539e.tar.xz
python3: need zlib support in host-python3 for ensurepip
ensurepip needs zlib support at build time, so add the necessary dependency to host-python3. To ensure that setup.py actually finds zlib.h, some tricks are needed to set INCLUDEDIR correctly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-python3.in')
-rw-r--r--rules/host-python3.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/host-python3.in b/rules/host-python3.in
index 202d75825..e15b90571 100644
--- a/rules/host-python3.in
+++ b/rules/host-python3.in
@@ -5,8 +5,15 @@ config HOST_PYTHON3
select HOST_EXPAT
select HOST_LIBFFI
select HOST_OPENSSL
+ select HOST_ZLIB if HOST_PYTHON3_ZLIB
default y if ALLYES
help
Python is an interpreted, interactive,
object-oriented, extensible programming language.
+if HOST_PYTHON3
+
+config HOST_PYTHON3_ZLIB
+ bool
+
+endif