mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
debugging prints
This commit is contained in:
parent
58568bd0cd
commit
d821c95eb0
|
@ -13,7 +13,9 @@ def test_build_dependencies(en_vocab):
|
||||||
root_dir = None
|
root_dir = None
|
||||||
# when running tests locally, the file is 3 levels up. On the CI, it's 2 levels up.
|
# when running tests locally, the file is 3 levels up. On the CI, it's 2 levels up.
|
||||||
roots = [Path(__file__).parent.parent, Path(__file__).parent.parent.parent] # or whatever
|
roots = [Path(__file__).parent.parent, Path(__file__).parent.parent.parent] # or whatever
|
||||||
|
print()
|
||||||
for r in roots:
|
for r in roots:
|
||||||
|
print("inspecting dir", r, "-->", [f.name for f in r.glob(pattern="*.*")])
|
||||||
req_file = r / "requirements.txt"
|
req_file = r / "requirements.txt"
|
||||||
if req_file.exists():
|
if req_file.exists():
|
||||||
root_dir = r
|
root_dir = r
|
||||||
|
@ -33,6 +35,18 @@ def test_build_dependencies(en_vocab):
|
||||||
setup_file = root_dir / "setup.cfg"
|
setup_file = root_dir / "setup.cfg"
|
||||||
with setup_file.open() as f:
|
with setup_file.open() as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
|
||||||
|
# import configparser
|
||||||
|
# config = configparser.ConfigParser()
|
||||||
|
# config.read(setup_file)
|
||||||
|
# print("SECTIONS", config.sections())
|
||||||
|
# print("options", config['options'])
|
||||||
|
# for key in config['options']:
|
||||||
|
# print("key", key)
|
||||||
|
# print("setup_requires *", config['options']['setup_requires'], "*")
|
||||||
|
# lines = config['options']['setup_requires']
|
||||||
|
# lines += config['options']['install_requires']
|
||||||
|
|
||||||
setup_keys = set()
|
setup_keys = set()
|
||||||
for line in lines:
|
for line in lines:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user