Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Updated build scripts

davidmezzettib6cbe880f606
diff --git a/.travis.yml b/.travis.yml
index 3a3a0e5e..04120577 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,10 +15,6 @@ jobs:
language: shell
script:
- make PYTHON=python3 test
- install:
- - pip3 install -U pip wheel coverage coveralls
- - pip3 install . --no-binary faiss-cpu
- - python3 --version
- name: "Windows"
os: windows
language: shell
@@ -29,8 +25,8 @@ jobs:
- python -m pip install -U pip wheel
- python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
install:
- - pip install -U pip wheel coverage coveralls
- - pip install .
- - python --version
+ - pip3 install -U pip wheel coverage coveralls
+ - pip3 install .
+ - python3 --version || python --version
script:
- make test
diff --git a/setup.py b/setup.py
index 7c5213e5..11ade5df 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,8 @@ setup(name="txtai",
python_requires=">=3.6",
install_requires=[
"annoy>=1.16.3",
- "faiss-cpu>=1.6.4",
+ "faiss-cpu>=1.6.4; sys_platform != 'darwin'",
+ "faiss-cpu==1.6.3; sys_platform == 'darwin'",
"fastapi>=0.61.1",
"fasttext>=0.9.2",
"hnswlib>=0.4.0",