Commit 3f3edc39 authored by 赵小蒙's avatar 赵小蒙

update setup

parent 97a4e473
......@@ -8,8 +8,8 @@ def parse_requirements(filename):
for line in lines:
if "http" in line:
pkg_name_with_version = line.split('/')[-1].split('-')[0]
requires.append(pkg_name_with_version)
pkg_name_without_url = line.split('@')[0].strip()
requires.append(pkg_name_without_url)
else:
requires.append(line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment