Commit ecd60e34 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation/metadata-collect-agent/Makefile: Add J's trick.

parent d8dab379
ifneq ($(PYTHON_PATH),) # this is for buildouts
INCLUDE_PYTHON=-I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include'))")
INCLUDE_PYTHON=-I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include'))")
#ifneq ($(PYTHON_PATH),) # this is for buildouts
#INCLUDE_PYTHON=-I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include'))")
#INCLUDE_PYTHON=-I$(shell $(PYTHON_PATH)/bin/python3 -c "from sysconfig import get_paths; print(get_paths()['include'])")
endif
ifeq ($(INCLUDE_PYTHON),) # default behavior to get python includes path
INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ")
endif
#endif
#ifeq ($(INCLUDE_PYTHON),) # default behavior to get python includes path
# INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ")
#endif
ifneq ($(FMTLIB_PATH),)
INCLUDE_FMTLIB = -I$(FMTLIB_PATH)/include
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment