4 |
4 |
5 system_str = platform.system() |
5 system_str = platform.system() |
6 |
6 |
7 |
7 |
8 INSTALLS = [ #(key,method, option_str, dict_extra_env) |
8 INSTALLS = [ #(key,method, option_str, dict_extra_env) |
9 'PSYCOPG2', |
9 {'requirement':'requirements.txt', 'install': {'option_str': None, 'dict_extra_env': None}}, |
10 'PIL', |
10 # 'PSYCOPG2', |
11 'DJANGO', |
11 # 'PIL', |
12 'SOUTH', |
12 # 'DJANGO', |
13 'DJANGO-EXTENSIONS', |
13 # 'SOUTH', |
14 'DJANGO-REGISTRATION', |
14 # 'DJANGO-EXTENSIONS', |
15 'SORL_THUMBNAIL', |
15 # 'DJANGO-REGISTRATION', |
16 'HAYSTACK', |
16 # 'SORL_THUMBNAIL', |
17 'REQUESTS', |
17 # 'HAYSTACK', |
18 'SIMPLEJSON', |
18 # 'REQUESTS', |
19 'PYELASTICSEARCH', |
19 # 'SIMPLEJSON', |
20 'WHOOSH', |
20 # 'PYELASTICSEARCH', |
21 'MIMEPARSE', |
21 # 'WHOOSH', |
22 'SIX', |
22 # 'MIMEPARSE', |
23 'PYTZ', |
23 # 'SIX', |
24 'PYTHON-DATEUTIL', |
24 # 'PYTZ', |
25 'PYYAML', |
25 # 'PYTHON-DATEUTIL', |
26 'PYTHON-DIGEST', |
26 # 'PYYAML', |
27 'DJANGO-TASTYPIE', |
27 # 'PYTHON-DIGEST', |
28 'ISODATE', |
28 # 'DJANGO-TASTYPIE', |
29 'HTML5LIB', |
29 # 'ISODATE', |
30 'RDFLIB', |
30 # 'HTML5LIB', |
31 'PYCRYPTO', |
31 # 'PYPARSING', |
|
32 # 'RDFLIB', |
|
33 # 'PYCRYPTO', |
32 ] |
34 ] |
33 |
35 |
34 #if system_str == "Linux" and 'PIL' in INSTALLS: |
36 OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip_setuptools", "use_distribute"] |
35 # i = INSTALLS.index('PIL') |
|
36 # INSTALLS.insert(i, 'ZLIB') |
|
37 # INSTALLS.insert(i, 'LIBJPEG') |
|
38 |
37 |
39 if system_str == "Linux": |
38 def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
40 INSTALLS.insert(2, 'DISTRIBUTE') |
39 return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
41 |
40 |
42 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
43 if system_str != 'Linux': |
|
44 OPTIONS_TO_ADD.append('use_distribute') |
|
45 |
|
46 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
47 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
|