Lines Matching +full:autotools +full:- +full:build +full:- +full:and +full:- +full:test
9 PYTHON3_SOURCE = Python-$(PYTHON3_VERSION).tar.xz
11 PYTHON3_LICENSE = Python-2.0, others
17 # cross-compiling third-party Python modules.
20 --without-ensurepip \
21 --without-cxx-main \
22 --disable-sqlite3 \
23 --disable-tk \
24 --with-expat=system \
25 --disable-curses \
26 --disable-codecs-cjk \
27 --disable-nis \
28 --enable-unicodedata \
29 --disable-test-modules \
30 --disable-idle3 \
31 --disable-ossaudiodev
33 # Make sure that LD_LIBRARY_PATH overrides -rpath.
37 # communicate over the network during the build.
39 LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
42 PYTHON3_DEPENDENCIES = host-python3 libffi
44 HOST_PYTHON3_DEPENDENCIES = host-autoconf-archive host-expat host-zlib host-libffi
47 HOST_PYTHON3_DEPENDENCIES += host-bzip2
49 HOST_PYTHON3_CONF_OPTS += --disable-bzip2
53 HOST_PYTHON3_DEPENDENCIES += host-openssl
55 HOST_PYTHON3_CONF_OPTS += --disable-openssl
61 PYTHON3_CONF_OPTS += --enable-lib2to3
63 PYTHON3_CONF_OPTS += --disable-lib2to3
69 PYTHON3_CONF_OPTS += --disable-berkeleydb
75 PYTHON3_CONF_OPTS += --disable-readline
81 PYTHON3_CONF_OPTS += --disable-curses
86 PYTHON3_CONF_OPTS += --with-libmpdec=system
88 PYTHON3_CONF_OPTS += --with-libmpdec=none
93 PYTHON3_CONF_OPTS += --with-expat=system
95 PYTHON3_CONF_OPTS += --with-expat=none
101 PYTHON3_CONF_OPTS += --disable-sqlite3
106 PYTHON3_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
108 PYTHON3_CONF_OPTS += --disable-openssl
112 PYTHON3_CONF_OPTS += --disable-codecs-cjk
116 PYTHON3_CONF_OPTS += --disable-unicodedata
119 # Disable auto-detection of uuid.h (util-linux)
122 PYTHON3_CONF_OPTS += --disable-uuid
127 PYTHON3_CONF_OPTS += --disable-bzip2
133 PYTHON3_CONF_OPTS += --disable-xz
139 PYTHON3_CONF_OPTS += --disable-zlib
143 PYTHON3_CONF_OPTS += --enable-ossaudiodev
145 PYTHON3_CONF_OPTS += --disable-ossaudiodev
149 # communicate over the network during the build.
175 --without-ensurepip \
176 --without-cxx-main \
177 --with-system-ffi \
178 --disable-pydoc \
179 --disable-test-modules \
180 --disable-tk \
181 --disable-nis \
182 --disable-idle3 \
183 --disable-pyc-build
187 # and some helper tools such as "Programs/_freeze_importlib" or
188 # "Parser/pgen" (look for regen-* targets in Makefile.pre.in for more
190 # pre-generated, so just regular "make" with no additional steps
191 # should be sufficient for a succesfull build, however due to
194 # we have to do "regen-importlib" step before building CPython
198 # To achive that we add pre-build steps to host-python3 as well as
199 # python3 that execute "regen-importlib" target.
202 # is built for the target, while we need to run them at build time. So
203 # when installing host-python3, we copy them to $(HOST_DIR)/bin...
206 $(HOST_MAKE_ENV) $(PYTHON3_CONF_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) regen-importlib
207 cp $(@D)/Programs/_freeze_importlib $(HOST_DIR)/bin/python-freeze-importlib
212 # ... And then, when building the target python we first buid
215 # "host-usable" version over the one that was just build and then
216 # build "regen-importlib" target
219 …$(TARGET_MAKE_ENV) $(PYTHON3_CONF_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) Programs/_freeze_…
220 cp $(HOST_DIR)/bin/python-freeze-importlib $(@D)/Programs/_freeze_importlib
221 $(TARGET_MAKE_ENV) $(PYTHON3_CONF_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) regen-importlib
228 # and the pyconfig.h files are needed at runtime.
231 rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)-config
232 rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)m-config
233 rm -f $(TARGET_DIR)/usr/bin/python3-config
234 rm -f $(TARGET_DIR)/usr/bin/smtpd.py.3
235 rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/distutils/command/wininst*.exe
236 …in `find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-$(PYTHON3_VERSION_MAJOR)m-*/ \
237 -type f -not -name Makefile` ; do \
238 rm -f $$i ; \
240 rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/__pycache__/
241 rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/lib-dynload/sysconfigdata/__pycache__
242 rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/collections/__pycache__
243 rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/importlib/__pycache__
258 PYTHON3_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
261 ln -fs python3 $(TARGET_DIR)/usr/bin/python
267 ln -fs python3 $(HOST_DIR)/bin/python
268 ln -fs python3-config $(HOST_DIR)/bin/python-config
278 PYTHON3_DEPENDENCIES += bluez5_utils-headers
281 $(eval $(autotools-package))
282 $(eval $(host-autotools-package))
286 find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) -name '*.py' -print0 | \
287 xargs -0 --no-run-if-empty touch -d @$(SOURCE_DATE_EPOCH)
296 $(if $(VERBOSE),--verbose) \
297 --strip-root $(TARGET_DIR) \
307 find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) -name '*.py' \
308 …$(if $(strip $(KEEP_PYTHON_PY_FILES)),-not \( $(call finddirclauses,$(TARGET_DIR),$(KEEP_PYTHON_PY…
309 -print0 | \
310 xargs -0 --no-run-if-empty rm -f
319 find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) -name '*.pyc' -print0 | \
320 xargs -0 --no-run-if-empty rm -f
325 # In all cases, we don't want to keep the optimized .opt-1.pyc and
326 # .opt-2.pyc files, since they can't work without their non-optimized
329 …ARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) -name '*.opt-1.pyc' -print0 -o -name '*.opt-2.py…
330 xargs -0 --no-run-if-empty rm -f