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 'SIX', |
9 {'requirement':'requirement.txt', 'install': {'option_str': None, 'dict_extra_env': None}}, |
10 'WSGIREF', |
10 # 'SIX', |
11 'REQUESTS', |
11 # 'WSGIREF', |
12 'SIMPLEJSON', |
12 # 'REQUESTS', |
13 'ISODATE', |
13 # 'SIMPLEJSON', |
14 'PYPARSING', |
14 # 'ISODATE', |
15 'HTML5LIB', |
15 # 'PYPARSING', |
16 'PSYCOPG2', |
16 # 'HTML5LIB', |
17 'SOUTH', |
17 # 'PSYCOPG2', |
18 'DJANGO', |
18 # 'DJANGO', |
19 'DJANGO-EXTENSIONS', |
19 # 'DJANGO-EXTENSIONS', |
20 'RDFLIB', |
20 # 'SOUTH', |
21 'SPARQLWRAPPER', |
21 # 'RDFLIB', |
22 'DEFUSEDXML', |
22 # 'SPARQLWRAPPER', |
23 'DJANGO-CORS-HEADERS', |
23 # 'DEFUSEDXML', |
24 'DJANGO-FILTERS', |
24 # 'DJANGO-CORS-HEADERS', |
25 'MARKDOWN', |
25 # 'DJANGO-FILTER', |
26 'DJANGO-REST-FRAMEWORK', |
26 # 'MARKDOWN', |
|
27 # 'DJANGO-REST-FRAMEWORK', |
27 ] |
28 ] |
28 |
29 |
29 if system_str == "Linux": |
30 if system_str == "Linux": |
30 INSTALLS.insert(2, 'DISTRIBUTE') |
31 INSTALLS.insert(2, 'DISTRIBUTE') |
31 |
32 |
32 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
33 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
33 if system_str != 'Linux': |
34 if system_str != 'Linux': |
34 OPTIONS_TO_ADD.append('use_distribute') |
35 OPTIONS_TO_ADD.append('use_distribute') |
35 |
36 |
36 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
37 def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
37 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
38 return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |