| author | ymh <ymh.work@gmail.com> |
| Thu, 04 Jul 2013 17:57:26 +0200 | |
| changeset 61 | 0048668779c0 |
| parent 3 | 221af1052ec4 |
| child 237 | 9b02cc842a69 |
| 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 |
'SIX', |
|
10 |
'LIBJPEG', |
|
11 |
'ZLIB', |
|
12 |
'REQUESTS', |
|
13 |
'SIMPLEJSON', |
|
14 |
'ISODATE', |
|
15 |
'PYPARSING', |
|
16 |
'HTML5LIB', |
|
17 |
'LXML', |
|
18 |
'PSYCOPG2', |
|
19 |
'SOUTH', |
|
20 |
'PIL', |
|
21 |
'DJANGO', |
|
22 |
'DJANGO-EXTENSIONS', |
|
23 |
'HAYSTACK', |
|
24 |
'PYELASTICSEARCH', |
|
25 |
'PYTHON-DATEUTIL', |
|
26 |
'RDFLIB', |
|
27 |
'SQLALCHEMY', |
|
| 3 | 28 |
'RDFLIB-SQLALCHEMY', |
29 |
'WIKITOOLS', |
|
|
61
0048668779c0
change model for thesaurus tree. show level and ancestor
ymh <ymh.work@gmail.com>
parents:
3
diff
changeset
|
30 |
'MPTT', |
| 0 | 31 |
] |
32 |
||
33 |
if system_str == "Linux": |
|
34 |
INSTALLS.insert(2, 'DISTRIBUTE') |
|
35 |
||
36 |
OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
37 |
if system_str != 'Linux': |
|
38 |
OPTIONS_TO_ADD.append('use_distribute') |
|
39 |
||
40 |
def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
41 |
return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |