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 'PSYCOPG2', |
|
10 'PIL', |
|
11 'DJANGO', |
|
12 'SOUTH', |
|
13 'DJANGO-EXTENSIONS', |
|
14 'DJANGO-REGISTRATION', |
|
15 'SORL_THUMBNAIL', |
|
16 'HAYSTACK', |
|
17 'REQUESTS', |
|
18 'SIMPLEJSON', |
|
19 'PYELASTICSEARCH', |
|
20 'WHOOSH', |
|
21 'MIMEPARSE', |
|
22 'SIX', |
|
23 'PYTHON-DATEUTIL', |
|
24 'PYYAML', |
|
25 'PYTHON-DIGEST', |
|
26 'DJANGO-TASTYPIE', |
|
27 ] |
|
28 |
|
29 if system_str == "Linux": |
|
30 INSTALLS.insert(2, 'DISTRIBUTE') |
|
31 |
|
32 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
33 if system_str != 'Linux': |
|
34 OPTIONS_TO_ADD.append('use_distribute') |
|
35 |
|
36 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
37 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |