From 3958212cbfaa2977e311a459154a5519f2e8357a Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Thu, 9 Jan 2025 20:43:58 -0500 Subject: refactor: make sure to use latest `python` --- .local/share/python-rainfall/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/share/python-rainfall/Makefile') diff --git a/.local/share/python-rainfall/Makefile b/.local/share/python-rainfall/Makefile index 63c96df..b0219a3 100644 --- a/.local/share/python-rainfall/Makefile +++ b/.local/share/python-rainfall/Makefile @@ -1,4 +1,4 @@ compile: cython3 --embed -o rainfall.c -X language_level=3 rainfall.py - PYTHON_VERSION=`ls /usr/include | grep -o 'python[3-9]\+\.[0-9]\+'` ; \ + PYTHON_VERSION=`ls /usr/include | grep -o 'python[3-9]\+\.[0-9]\+' | tail -1` ; \ gcc -march=native -O2 -pipe -fno-plt -I /usr/include/$$PYTHON_VERSION -o rainfall rainfall.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl -- cgit v1.2.3