From 49c0be44560b59253a4aa94ba0dd51283380d2fc Mon Sep 17 00:00:00 2001 From: edoapra Date: Mon, 26 Feb 2024 10:36:55 -0800 Subject: [PATCH] set PYTHONVERSION when undefined --- src/python/GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/GNUmakefile b/src/python/GNUmakefile index 9bcb5a9b42..be7af11fe7 100644 --- a/src/python/GNUmakefile +++ b/src/python/GNUmakefile @@ -6,7 +6,9 @@ LIBRARY = libnwpython.a OBJ = python_input.o task_python.o nwchem_wrap.o nw_inp_from_string.o - +ifndef PYTHONVERSION + PYTHONVERSION=$(shell python -V| cut -d ' ' -f 2 |cut -d . -f 1-2) +endif LIB_INCLUDES = $(shell python$(PYTHONVERSION)-config --includes| sed -e "s/\-iwithsysroot/\-I/g")