Commit 698177e4 authored by Ophélie Gagnard's avatar Ophélie Gagnard

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

parent a046b05e
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'])") #INCLUDE_PYTHON=-I$(shell $(PYTHON_PATH)/bin/python3 -c "from sysconfig import get_paths; print(get_paths()['include'])")
endif #endif
ifeq ($(INCLUDE_PYTHON),) # default behavior to get python includes path #ifeq ($(INCLUDE_PYTHON),) # default behavior to get python includes path
INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ") # INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ")
endif #endif
ifneq ($(FMTLIB_PATH),) ifneq ($(FMTLIB_PATH),)
INCLUDE_FMTLIB = -I$(FMTLIB_PATH)/include 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