Lines Matching refs:python
18 # Define PYTHON to point to the python binary if the default
19 # `python' is not correct; for example: PYTHON=python2
21 # Define PYTHON_CONFIG to point to the python-config binary if
22 # the default `$(PYTHON)-config' is not correct.
182 $(OUTPUT)python/perf.so: $(PYRF_OBJS)
185 --build-lib='$(OUTPUT)python' \
186 --build-temp='$(OUTPUT)python/temp'
381 # Files needed for the python binding, perf.so
390 PYRF_OBJS += $(OUTPUT)util/python.o
493 disable-python = $(eval $(disable-python_code))
497 $(warning Python support won't be built)
500 override PYTHON := \
501 $(call get-executable-or-default,PYTHON,python)
503 ifndef PYTHON
504 $(call disable-python,python interpreter)
505 python-clean :=
508 PYTHON_WORD := $(call shell-wordify,$(PYTHON))
510 python-clean := $(PYTHON_WORD) util/setup.py clean \
511 --build-lib='$(OUTPUT)python' \
512 --build-temp='$(OUTPUT)python/temp'
515 $(call disable-python)
519 $(call get-executable-or-default,PYTHON_CONFIG,$(PYTHON)-config)
522 $(call disable-python,python-config tool)
534 $(call disable-python,Python.h (for Python 2.x))
538 $(warning Python 3 is not yet supported; please set)
539 $(warning PYTHON and/or PYTHON_CONFIG appropriately.)
540 $(warning If you also have Python 2 installed, then)
543 $(warning $(and ,) make PYTHON=python2)
545 $(warning Otherwise, disable Python support entirely:)
553 LIB_OBJS += $(OUTPUT)util/scripting-engines/trace-event-python.o
554 LIB_OBJS += $(OUTPUT)scripts/python/Perf-Trace-Util/Context.o
555 LANG_BINDINGS += $(OUTPUT)python/perf.so
737 $(OUTPUT)util/scripting-engines/trace-event-python.o: util/scripting-engines/trace-event-python.c $(OUTPUT)PERF-CFLAGS
740 $(OUTPUT)scripts/python/Perf-Trace-Util/Context.o: scripts/python/Perf-Trace-Util/Context.c $(OUTPUT)PERF-CFLAGS
863 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'
864 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
865 $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'
866 $(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'
867 $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
901 $(python-clean)