Lines Matching refs:python
18 # Rebuild the host Python binaries from sources.
32 This program is used to rebuild one or more Python client programs from
37 By default, the script rebuilds Python for you host system [$HOST_TAG],
50 For example, here's how to rebuild Python 2.7.5 on Linux
54 --python-version=2.7.5 \n \
61 register_var_option "--python-version=<version>" PYTHON_VERSION "Select Python version."
70 register_var_option "--build-dir=<path>" BUILD_DIR "Build Python into directory"
133 # Build python for build machine automatically
139 # Python needs to execute itself during its build process, so must build the build
140 # Python first. It should also be an error if not asked to build for build machine.
209 # Sanity check for all Python versions.
211 PYTHON_SRCDIR=$TOOLCHAIN_SRC_DIR/python/Python-$VERSION
230 # $2: python version
233 local SRCDIR=$TOOLCHAIN_SRC_DIR/python/Python-$2
234 local BUILDDIR=$BH_BUILD_DIR/build-python-$1-$2
322 TEXT="$(bh_host_text) python-$BH_HOST_CONFIG-$2:"
325 touch $SRCDIR/Python/graminit.c
327 touch $SRCDIR/Parser/Python.asdl
330 touch $SRCDIR/Include/Python-ast.h
331 touch $SRCDIR/Python/Python-ast.c
333 # By default, the Python build will force the following compiler flags
340 # custom OPT variable here (see Python-2.7.5/configure.ac) when
363 # $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
365 # (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
377 if [ -d "$GCC_DIR/libstdc++-v3/python" ]; then
378 cd "$GCC_DIR/libstdc++-v3/python"
391 bh_stamps_do host-python-$1-$2 build_host_python $1 $2
394 # Install host Python binaries and support files to the NDK install dir.
396 # $2: python version
405 dump "$(bh_host_text) python-$BH_HOST_ARCH-$2: Installing"
417 bh_stamps_do install-host-python-$1-$2 install_host_python $1 $2
419 # make sharedmods (setup.py) needs to use the build machine's Python
426 # Package host Python binaries into a tarball
428 # $2: python version
435 local PACKAGENAME=ndk-python-$(install_dir_from_host_tag $1).tar.bz2
446 bh_stamps_do package-host-python-$1-$2 package_host_python $1 $2