Abhishek Thakur
commited on
Commit
·
e65f8ef
1
Parent(s):
9987f71
allow -- in pip install
Browse files- competitions/utils.py +5 -2
competitions/utils.py
CHANGED
@@ -182,8 +182,11 @@ def install_requirements(requirements_fname):
|
|
182 |
|
183 |
with open(requirements_fname, "r", encoding="utf-8") as f:
|
184 |
for line in f:
|
185 |
-
if
|
186 |
-
|
|
|
|
|
|
|
187 |
|
188 |
with open("install.txt", "w", encoding="utf-8") as f:
|
189 |
for line in install_list:
|
|
|
182 |
|
183 |
with open(requirements_fname, "r", encoding="utf-8") as f:
|
184 |
for line in f:
|
185 |
+
# if line startswith - then skip but dont skip if line startswith --
|
186 |
+
if line.startswith("-"):
|
187 |
+
if not line.startswith("--"):
|
188 |
+
continue
|
189 |
+
install_list.append(line)
|
190 |
|
191 |
with open("install.txt", "w", encoding="utf-8") as f:
|
192 |
for line in install_list:
|