|
1 |
| -try: |
2 |
| - from pip.req import parse_requirements |
3 |
| -except ImportError: |
4 |
| - # The req module has been moved to pip._internal in the 10 release. |
5 |
| - from pip._internal.req import parse_requirements |
| 1 | +from __future__ import print_function |
6 | 2 | import lnt
|
7 | 3 | import os
|
8 | 4 | from sys import platform as _platform
|
|
31 | 27 |
|
32 | 28 | if "--server" in sys.argv:
|
33 | 29 | sys.argv.remove("--server")
|
34 |
| - req_file = "requirements.server.txt" |
35 |
| -else: |
36 |
| - req_file = "requirements.client.txt" |
37 |
| -try: |
38 |
| - install_reqs = parse_requirements(req_file, session=False) |
39 |
| -except TypeError: |
40 |
| - # In old PIP the session flag cannot be passed. |
41 |
| - install_reqs = parse_requirements(req_file) |
42 |
| - |
43 |
| -try: |
44 |
| - # Filter out git dependencies, which can't be handled by setuptools. |
45 |
| - reqs = [ir.requirement for ir in install_reqs |
46 |
| - if not ir.requirement.startswith("git+")] |
47 |
| -except AttributeError: |
48 |
| - # Old versions of pip (<20.1) returned a List[InstallRequirement] instead |
49 |
| - # of a List[ParsedRequirement], which has different member names, and does |
50 |
| - # not include git dependencies. |
51 |
| - reqs = [str(ir.req) for ir in install_reqs] |
| 30 | + print("Use pip to install requirements.server.txt for a full server install:") |
| 31 | + print("pip install -r ./requirements.server.txt") |
| 32 | + sys.exit(1) |
| 33 | + |
52 | 34 |
|
53 | 35 | setup(
|
54 | 36 | name="LNT",
|
|
132 | 114 | 'lnt = lnt.lnttool:main',
|
133 | 115 | ],
|
134 | 116 | },
|
135 |
| - install_requires=reqs, |
| 117 | + install_requires=[ |
| 118 | + "six", |
| 119 | + "aniso8601==1.2.0", |
| 120 | + "Flask==0.12.2", |
| 121 | + "Flask-RESTful==0.3.4", |
| 122 | + "Jinja2==2.7.2", |
| 123 | + "MarkupSafe==0.23", |
| 124 | + "SQLAlchemy==1.1.11", |
| 125 | + "Werkzeug==0.12.2", |
| 126 | + "itsdangerous==0.24", |
| 127 | + "python-dateutil==2.6.0", |
| 128 | + "python-gnupg==0.3.7", |
| 129 | + "pytz==2016.10", |
| 130 | + "WTForms==2.0.2", |
| 131 | + "Flask-WTF==0.12", |
| 132 | + "typing", |
| 133 | + "click==6.7", |
| 134 | + "pyyaml==3.13", |
| 135 | + "requests", |
| 136 | + "future", |
| 137 | + "lit", |
| 138 | + ], |
136 | 139 |
|
137 | 140 | ext_modules=[cPerf],
|
138 | 141 |
|
|
0 commit comments