Skip to content

Commit e7ae3bf

Browse files
authored
fix: better install requirement for install in setup.py (#15796)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent b932c04 commit e7ae3bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,8 @@ def _read_requirements(filename: str) -> list[str]:
592592
for line in requirements:
593593
if line.startswith("-r "):
594594
resolved_requirements += _read_requirements(line.split()[1])
595-
elif line.startswith("--"):
596-
continue
597-
else:
595+
elif not line.startswith("--") and not line.startswith(
596+
"#") and line.strip() != "":
598597
resolved_requirements.append(line)
599598
return resolved_requirements
600599

0 commit comments

Comments
 (0)