equal
deleted
inserted
replaced
|
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 'REQUESTS', |
|
11 'SIMPLEJSON', |
|
12 'ISODATE', |
|
13 'PYPARSING', |
|
14 'HTML5LIB', |
|
15 'PSYCOPG2', |
|
16 'SOUTH', |
|
17 'DJANGO', |
|
18 'DJANGO-EXTENSIONS', |
|
19 'SPARQLWRAPPER', |
|
20 'RDFLIB', |
|
21 ] |
|
22 |
|
23 if system_str == "Linux": |
|
24 INSTALLS.insert(2, 'DISTRIBUTE') |
|
25 |
|
26 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
27 if system_str != 'Linux': |
|
28 OPTIONS_TO_ADD.append('use_distribute') |
|
29 |
|
30 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
31 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |