mirror of https://github.com/explosion/spaCy.git
where areth thou, file ?
This commit is contained in:
parent
9834527f2c
commit
9f1447bf71
|
@ -8,20 +8,26 @@ def test_build_dependencies(en_vocab):
|
||||||
libs_ignore_setup = ["fugashi", "natto-py", "pythainlp"]
|
libs_ignore_setup = ["fugashi", "natto-py", "pythainlp"]
|
||||||
|
|
||||||
# check requirements.txt
|
# check requirements.txt
|
||||||
|
req_dict = {}
|
||||||
try:
|
try:
|
||||||
# for CLI usage
|
# for CLI usage
|
||||||
root_dir = Path(__file__).parent.parent
|
root_dir = Path(__file__).parent.parent
|
||||||
req_file = root_dir / "requirements.txt"
|
req_file = root_dir / "requirements.txt"
|
||||||
req_dict = {}
|
|
||||||
with req_file.open() as f:
|
with req_file.open() as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
# for local usage
|
try:
|
||||||
root_dir = Path(__file__).parent.parent.parent
|
# for local usage
|
||||||
req_file = root_dir / "requirements.txt"
|
root_dir = Path(__file__).parent.parent.parent
|
||||||
req_dict = {}
|
req_file = root_dir / "requirements.txt"
|
||||||
with req_file.open() as f:
|
with req_file.open() as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
except FileNotFoundError as e:
|
||||||
|
# where areth thou ?
|
||||||
|
root_dir = Path(__file__).parent.parent.parent.parent
|
||||||
|
req_file = root_dir / "requirements.txt"
|
||||||
|
with req_file.open() as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
|
|
Loading…
Reference in New Issue