mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-13 22:18:36 +08:00
[None][infra] Fix issue that lock file geneartion will skip dependency with comment (#10144)
Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
This commit is contained in:
parent
bd5b3c2ac0
commit
2e88c86f10
@ -156,9 +156,10 @@ if __name__ == "__main__":
|
||||
packages = packages[:-1]
|
||||
|
||||
for package in packages:
|
||||
package = re.sub(r'\s#.*$', '', package).rstrip()
|
||||
# WAR: ignore lines with "-f": No tool exists to parse complex requirements.txt
|
||||
if '-f' in package or \
|
||||
"#" in package or \
|
||||
if not package or \
|
||||
'-f' in package or \
|
||||
package.startswith('--'):
|
||||
continue
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user