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 'REQUESTS', |
|
17 'SIMPLEJSON', |
|
18 'PYTZ', |
|
19 'PYTHON-DATEUTIL', |
|
20 ] |
|
21 |
|
22 if system_str == "Linux": |
|
23 INSTALLS.insert(2, 'DISTRIBUTE') |
|
24 |
|
25 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
26 if system_str != 'Linux': |
|
27 OPTIONS_TO_ADD.append('use_distribute') |
|
28 |
|
29 def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
30 return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |