| author | ymh <ymh.work@gmail.com> |
| Tue, 12 Jun 2012 16:04:37 +0200 | |
| changeset 64 | 3249b8cd0028 |
| parent 48 | b888750b6ae5 |
| child 76 | b86783a14698 |
| permissions | -rw-r--r-- |
| 16 | 1 |
import platform |
2 |
||
3 |
from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2 |
|
4 |
||
5 |
system_str = platform.system() |
|
6 |
||
7 |
if system_str == 'Windows': |
|
8 |
INSTALLS = [ |
|
9 |
('JCC','easy_install',None,None), |
|
10 |
('PSYCOPG2',install_psycopg2,None,None), |
|
11 |
('PYLUCENE','easy_install',None,None), |
|
12 |
] |
|
13 |
else: |
|
14 |
INSTALLS = [ |
|
15 |
('PYLUCENE',install_pylucene,None,None), |
|
16 |
('PSYCOPG2', 'pip', None, None), |
|
17 |
] |
|
18 |
||
19 |
if system_str == 'Linux': |
|
20 |
INSTALLS.extend([ |
|
21 |
('DISTRIBUTE', 'pip', None, None), |
|
22 |
]) |
|
23 |
||
24 |
INSTALLS.extend([ #(key,method, option_str, dict_extra_env) |
|
|
48
b888750b6ae5
add pytz to the list of lib to install in virtualenv
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
25 |
('PYTZ', 'pip', None, None), |
| 16 | 26 |
('SOUTH', 'pip', None, None), |
27 |
('PIL', 'easy_install', None, None), |
|
28 |
('DJANGO','pip', None, None), |
|
29 |
('DJANGO-EXTENSIONS', 'pip', None, None), |
|
30 |
('DJANGO-REGISTRATION', 'easy_install', '-Z', None), |
|
31 |
('DJANGO-TAGGING', 'pip', None, None), |
|
32 |
('DJANGO-PISTON', 'easy_install', None, None), |
|
33 |
('HTTPLIB2', 'pip', None, None), |
|
34 |
('OAUTH2', 'easy_install', None, None), |
|
35 |
('DJANGO-OAUTH-PLUS', 'pip', None, None), |
|
36 |
('OPENID', 'pip', None, None), |
|
37 |
('DJANGO_OPENID_CONSUMER', 'pip', None, None), |
|
38 |
('SOCIAL_AUTH', 'easy_install', None, None), |
|
39 |
('DJANGO_GUARDIAN', 'pip', None, None), |
|
40 |
('SORL_THUMBNAIL', 'pip', None, None), |
|
|
64
3249b8cd0028
add a version of ldt platform for publishing
ymh <ymh.work@gmail.com>
parents:
48
diff
changeset
|
41 |
('LDT', 'pip', None, None), |
| 16 | 42 |
]) |
43 |
||
44 |
if system_str == "Darwin": |
|
45 |
INSTALLS.extend([ |
|
|
48
b888750b6ae5
add pytz to the list of lib to install in virtualenv
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
46 |
('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}), |
| 16 | 47 |
]) |
48 |
else: |
|
49 |
INSTALLS.extend([ |
|
50 |
('LXML', 'easy_install', None, None), |
|
51 |
]) |
|
52 |
||
53 |
||
54 |
def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
55 |
return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS) |