Home | History | Annotate | Download | only in python

Lines Matching refs:Python

31 # Low-level python wrapper
33 # When importing a python module from a shared library, the name of the lib has
35 # python module called "PyPfw" that relies on the one that we are building as a
37 # See https://docs.python.org/2/extending/extending.html#the-module-s-method-table-and-initialization-function
41 # Android only provides a 32bit version of python.
46 # python is only available in 32bits for now, thus arch is forced to 32bits
47 PYTHON_INSTALL_PATH := prebuilts/python/$(HOST_OS)-x86/2.7.5/
78 # Contrary to linux, on darwin, a python 64 bit executable is installed
81 # python module against the prebuild python library.
83 # As a *dirty* workaround, use the system's python configuration and hope
84 # it will be compatible with the prebuild python interpreter used at runtime.
85 # To summarize the prebuild python (64 bit?) interpreter will load a
86 # python native module (32bit) linked with the host (32 bit ?) python library.
87 LOCAL_LDLIBS += $(shell python-config --ldflags)
89 # Careful, we need to invoke the android python config not the host's one.
90 # Unfortunately, the internal install directory of python is hardcoded to a dummy value,
92 LOCAL_LDLIBS += $(shell $(PYTHON_BIN_PATH)/python $(PYTHON_BIN_PATH)/python-config --ldflags) \
99 # this directory must be put in the python path to be reachable
101 @echo "Generating Python binding files"
105 -Iprebuilts/misc/common/swig/include/2.0.11/python/ \
107 -Wall -Werror -v -python -c++ -outdir $(HOST_LIBRARY_PATH)/ -o $@ $^