set PYTHONVERSION when undefined

This commit is contained in:
edoapra 2024-02-26 10:36:55 -08:00
parent 973e3e4975
commit 49c0be4456
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -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")