From 67a4c8d6fe3b9b0928fb9715288b8fd26da3b247 Mon Sep 17 00:00:00 2001 From: Willian Z Date: Mon, 1 Mar 2021 16:57:50 +0800 Subject: [PATCH] Fix grizzly build on Python 3 Python 2 is discontinued https://www.python.org/doc/sunset-python-2/ --- python/grizzly/grizzly/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/grizzly/grizzly/Makefile b/python/grizzly/grizzly/Makefile index 4b94ec294..248523b0e 100644 --- a/python/grizzly/grizzly/Makefile +++ b/python/grizzly/grizzly/Makefile @@ -2,7 +2,7 @@ OS=$(shell uname -s) LLVM_VERSION=$(shell llvm-config --version | cut -d . -f 1,2) PYTHON_HEADER_INCLUDE = $(shell python-config --includes) -NUMPY_HEADER_INCLUDE = -I$(shell python -c "import numpy; print numpy.get_include()" 2>/dev/null) +NUMPY_HEADER_INCLUDE = -I$(shell python -c "from __future__ import print_function; import numpy; print(numpy.get_include())" 2>/dev/null) ifndef EXEC EXEC=python