| author | ymh <ymh.work@gmail.com> |
| Wed, 05 Feb 2014 03:18:25 +0100 | |
| changeset 336 | 6ffca49f6a0c |
| parent 335 | 493fceed57ec |
| permissions | -rw-r--r-- |
| 0 | 1 |
import platform |
2 |
||
3 |
from lib_create_env import lib_generate_install_methods |
|
4 |
||
5 |
system_str = platform.system() |
|
6 |
||
7 |
||
8 |
INSTALLS = [ #(key,method, option_str, dict_extra_env) |
|
9 |
'LIBJPEG', |
|
| 237 | 10 |
'ZLIB', |
11 |
{'requirement':'requirement.txt', 'install': {'option_str': None, 'dict_extra_env': None}}, |
|
12 |
# 'SIX', |
|
13 |
# 'REQUESTS', |
|
14 |
# 'SIMPLEJSON', |
|
15 |
# 'ISODATE', |
|
16 |
# 'PYPARSING', |
|
17 |
# 'HTML5LIB', |
|
| 335 | 18 |
# 'FUTURES', |
| 237 | 19 |
# 'LXML', |
20 |
# 'PSYCOPG2', |
|
21 |
# 'SOUTH', |
|
22 |
# 'PIL', |
|
23 |
# 'DJANGO', |
|
24 |
# 'DJANGO-EXTENSIONS', |
|
25 |
# 'HAYSTACK', |
|
26 |
# 'PYELASTICSEARCH', |
|
27 |
# 'PYTHON-DATEUTIL', |
|
28 |
# 'RDFLIB', |
|
29 |
# 'SQLALCHEMY', |
|
30 |
# 'RDFLIB-SQLALCHEMY', |
|
31 |
# 'WIKITOOLS', |
|
32 |
# 'MPTT', |
|
| 329 | 33 |
# 'PIPELINE', |
|
336
6ffca49f6a0c
use elasticsearch for label and free search
ymh <ymh.work@gmail.com>
parents:
335
diff
changeset
|
34 |
# 'UNIDECODE', |
| 0 | 35 |
] |
36 |
||
37 |
if system_str == "Linux": |
|
38 |
INSTALLS.insert(2, 'DISTRIBUTE') |
|
39 |
||
40 |
OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
41 |
if system_str != 'Linux': |
|
42 |
OPTIONS_TO_ADD.append('use_distribute') |
|
43 |
||
| 237 | 44 |
def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
45 |
return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |