summaryrefslogtreecommitdiffstats
path: root/rules/host-python3.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-14 18:02:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-17 15:59:30 +0200
commitab9558bdb60bb60a35e14dddc0fda6bca385ce1f (patch)
tree81f7379dbce0312e9e73328320d8a6ad15b2dc25 /rules/host-python3.make
parent9b42dfe3d4f3c77f0e649cb6fe1310584a2370b9 (diff)
downloadptxdist-ab9558bdb60bb60a35e14dddc0fda6bca385ce1f.tar.gz
ptxdist-ab9558bdb60bb60a35e14dddc0fda6bca385ce1f.tar.xz
python3: version bump 3.5.4 -> 3.7.0
zlib support can no longer be disabled. 'crc32' from zlib is used in other modules if found. So not installing the zlib module is no longer sufficient to ensure that zlib is not used. zlib is small enough so just depend on it unconditionally. Also, setup the environment to make the build reproducible. Depend on host-python3-setuptools. This is needed by most packages anyways, so we can drop a lot of extra dependencies. Also, we need to import some of it once: It generates some pickle files and that's racy during parallel building. These files should be generated at build time, but that happens in pkgdir and for cross we use the source tree in build-target. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-python3.make')
-rw-r--r--rules/host-python3.make15
1 files changed, 10 insertions, 5 deletions
diff --git a/rules/host-python3.make b/rules/host-python3.make
index 0196c8dd3..25e0d9f28 100644
--- a/rules/host-python3.make
+++ b/rules/host-python3.make
@@ -25,11 +25,13 @@ HOSTPYTHON3 = $(PTXCONF_SYSROOT_HOST)/bin/python$(PYTHON3_MAJORMINOR)
# Prepare
# ----------------------------------------------------------------------------
+# Note: the LDFLAGS are used by setup.py for manual searches
HOST_PYTHON3_ENV := \
$(HOST_ENV) \
ac_sys_system=Linux \
ac_sys_release=2 \
- MACHDEP=linux2
+ MACHDEP=linux2 \
+ LDFLAGS="-L $(PTXDIST_SYSROOT_HOST)/lib"
#
# autoconf
@@ -42,14 +44,17 @@ HOST_PYTHON3_CONF_OPT := \
--disable-optimizations \
--disable-loadable-sqlite-extensions \
--without-pydebug \
+ --without-assertions \
--without-lto \
- --with-signal-module \
- --with-threads=pthread \
+ --with-system-expat \
+ --without-system-libmpdec \
+ --with-dbmliborder= \
--without-doc-strings \
- --without-tsc \
--with-pymalloc \
+ --with-c-locale-coercion \
+ --with-c-locale-warning \
--without-valgrind \
- --with-fpectl \
+ --without-dtrace \
--with-computed-gotos \
--without-ensurepip