mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-09 14:23:43 +00:00
fix setup.py for install from git commit
This commit is contained in:
parent
cab0932fab
commit
faef7f70d4
7
setup.py
7
setup.py
@ -4,13 +4,14 @@ from setuptools import find_packages, setup
|
||||
|
||||
with open("requirements.txt") as f:
|
||||
parsed_requirements = f.read().splitlines()
|
||||
# remove blank lines and comments
|
||||
# remove blank lines, comments and links to specific git commits
|
||||
parsed_requirements = [
|
||||
x.strip()
|
||||
for x in parsed_requirements
|
||||
if ((x.strip()[0] != "#") and (len(x.strip()) > 3))
|
||||
if ((x.strip()[0] != "#") and (len(x.strip()) > 3) and "-e git://" not in x)
|
||||
]
|
||||
|
||||
# temporary workaround to install FARM from specific commit
|
||||
parsed_requirements.append('farm @ git+https://github.com/deepset-ai/FARM.git@1d30237b037050ef0ac5516f427443cdd18a4d43#egg=farm@v2.3.0#egg=farm')
|
||||
|
||||
setup(
|
||||
name="farm-haystack",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user