Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add ability to specify python version in Makefile

davidmezzettib376fb77cd9b
diff --git a/.travis.yml b/.travis.yml
index 34ec7bb3..f075bf77 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
- python3 --version
script:
- pip3 install .
- - make test
+ - make PYTHON=python3 test
- name: "Windows"
os: windows
language: shell
diff --git a/Makefile b/Makefile
index c30afd89..cef6045b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ export TEST_DIR := ./test/python
export PYTHONPATH := ${SRC_DIR}:${TEST_DIR}:${PYTHONPATH}
export PATH := ${TEST_DIR}:${PATH}
+# Default python executable if not provided
+PYTHON ?= python
+
# Unit tests
test:
- python -W ignore::DeprecationWarning -m unittest discover -v -s ${TEST_DIR}
+ ${PYTHON} -W ignore::DeprecationWarning -m unittest discover -v -s ${TEST_DIR}