| 1 |
--- a/setup.py |
| 2 |
+++ b/setup.py |
| 3 |
@@ -4,7 +4,6 @@ |
| 4 |
|
| 5 |
import glob |
| 6 |
import os |
| 7 |
-import pkg_resources |
| 8 |
import sys |
| 9 |
|
| 10 |
try: |
| 11 |
@@ -168,12 +167,7 @@ |
| 12 |
with open(path, 'r') as file_object: |
| 13 |
file_contents = file_object.read() |
| 14 |
|
| 15 |
- for requirement in pkg_resources.parse_requirements(file_contents): |
| 16 |
- try: |
| 17 |
- name = str(requirement.req) |
| 18 |
- except AttributeError: |
| 19 |
- name = str(requirement) |
| 20 |
- |
| 21 |
+ for name in file_contents.splitlines(): |
| 22 |
if not name.startswith('pip '): |
| 23 |
requirements.append(name) |
| 24 |
|