aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 610ba13..2af4d2f 100644
--- a/config.mk
+++ b/config.mk
@@ -1,7 +1,7 @@
PREFIX = /usr
-PY_MAJOR = $$($(PYTHON) --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1)
-PY_MINOR = $$($(PYTHON) --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 2)
+PY_MAJOR = $$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1)
+PY_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1)
PY_VER = $(PY_MAJOR)$(PY_MINOR)
PY_VERSION = $(PY_MAJOR).$(PY_MINOR)
@@ -9,7 +9,7 @@ PYTHONDIR = $(PREFIX)/lib/python$(PY_VERSION)
CYTHON = cython
PKGCONFIG = pkg-config
-PYTHON = python3
+PYTHON = python$(PY_MAJOR)
CPPFLAGS =
CFLAGS = -std=c99 -Wall $$($(PKGCONFIG) --cflags python$(PY_MAJOR)) -O2