handle empty lines
This commit is contained in:
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open("./requirements.txt", "r") as requirements_file:
|
|||||||
# don't include peft yet until we check the int4
|
# don't include peft yet until we check the int4
|
||||||
# need to manually install peft for now...
|
# need to manually install peft for now...
|
||||||
reqs = [r.strip() for r in requirements_file.readlines() if "peft" not in r]
|
reqs = [r.strip() for r in requirements_file.readlines() if "peft" not in r]
|
||||||
reqs = [r for r in reqs if r[0] != "#"]
|
reqs = [r for r in reqs if r and r[0] != "#"]
|
||||||
for r in reqs:
|
for r in reqs:
|
||||||
install_requires.append(r)
|
install_requires.append(r)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user