2 |
2 |
3 from lib_create_env import lib_generate_install_methods |
3 from lib_create_env import lib_generate_install_methods |
4 |
4 |
5 system_str = platform.system() |
5 system_str = platform.system() |
6 |
6 |
7 INSTALLS = [ #(key,method, option_str, dict_extra_env) |
7 INSTALLS = [ # (key,method, option_str, dict_extra_env) |
8 'LXML', |
8 {'requirement':'requirements.txt', |
9 'PSYCOPG2', |
9 'install': {'option_str': None, |
10 'PIL', |
10 'dict_extra_env': {'STATIC_DEPS':'true', 'LIBXML2_VERSION': '2.9.2', 'LIBXSLT_VERSION': '1.1.28', 'LIBICONV_VERSION': '1.14'} if system_str == 'Darwin' else None}}, |
11 'DJANGO', |
11 # 'LXML', |
12 'DJANGO-EXTENSIONS', |
12 # 'PSYCOPG2', |
13 'REGISTRATION', |
13 # 'PIL', |
14 'SOUTH', |
14 # 'DJANGO', |
15 'HTTPLIB2', |
15 # 'DJANGO-EXTENSIONS', |
16 'HAYSTACK', |
16 # 'REGISTRATION', |
17 'WHOOSH', |
17 # 'SOUTH', |
18 'WIKITOOLS', |
18 # 'HTTPLIB2', |
19 'ISODATE', |
19 # 'HAYSTACK', |
20 'RDFLIB', |
20 # 'WHOOSH', |
21 'SPARQLWRAPPER', |
21 # 'WIKITOOLS', |
22 'PYYAML', |
22 # 'ISODATE', |
23 'REQUESTS', |
23 # 'RDFLIB', |
24 'PYELASTICSEARCH', |
24 # 'SPARQLWRAPPER', |
25 'EASYTHUMBNAIL', |
25 # 'PYYAML', |
|
26 # 'REQUESTS', |
|
27 # 'PYELASTICSEARCH', |
|
28 # 'EASYTHUMBNAIL', |
26 ] |
29 ] |
27 |
30 |
28 if system_str == 'Windows': |
31 if system_str == 'Windows': |
29 INSTALLS.append('PYSTEMMER') |
32 INSTALLS.append('PYSTEMMER') |
30 |
33 |
31 if system_str == "Linux": |
34 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
32 INSTALLS.insert(2, 'DISTRIBUTE') |
|
33 |
35 |
34 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
36 def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
35 if system_str != 'Linux': |
37 return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
36 OPTIONS_TO_ADD.append('use_distribute') |
|
37 |
|
38 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
39 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
|