nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
70.77k stars 7.71k forks source link

tests: make python dependency optional #3115

Closed cebtenzzre closed 1 month ago

cebtenzzre commented 1 month ago

This would allow GPT4All to be built without Python, without any special flags.

By default, the test and check targets are made available only if Python is found. Setting -DGPT4ALL_TEST=ON will explicitly require Python in order to run the tests. Setting -DGPT4ALL_TEST=OFF will prevent the tests from being built.