author | ymh <ymh.work@gmail.com> |
Sat, 15 Oct 2011 02:15:24 +0200 | |
changeset 4 | 238f3cd543f2 |
parent 1 | 40d6b5e3dcd7 |
child 15 | 7fbe586daa78 |
permissions | -rwxr-xr-x |
1
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
1 |
import platform |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
2 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
3 |
from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
4 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
5 |
system_str = platform.system() |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
6 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
7 |
if system_str == 'Windows': |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
8 |
INSTALLS = [ |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
9 |
('JCC','easy_install',None,None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
10 |
('PSYCOPG2',install_psycopg2,None,None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
11 |
('PYLUCENE','easy_install',None,None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
12 |
] |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
13 |
else: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
14 |
INSTALLS = [ |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
15 |
('PYLUCENE',install_pylucene,None,None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
16 |
('PSYCOPG2', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
17 |
] |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
18 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
19 |
if system_str == 'Linux': |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
20 |
INSTALLS.extend([ |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
21 |
('DISTRIBUTE', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
22 |
]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
23 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
24 |
INSTALLS.extend([ #(key,method, option_str, dict_extra_env) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
25 |
('SOUTH', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
26 |
('SETUPTOOLS-HG', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
27 |
('MYSQL', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
28 |
('PIL', 'easy_install', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
29 |
('DJANGO','pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
30 |
('DJANGO-EXTENSIONS', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
31 |
('DJANGO-REGISTRATION', 'easy_install', '-Z', None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
32 |
('DJANGO-TAGGING', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
33 |
('DJANGO-PISTON', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
34 |
('HTTPLIB2', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
35 |
('OAUTH2', 'easy_install', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
36 |
('DJANGO-OAUTH-PLUS', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
37 |
('OPENID', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
38 |
('DJANGO_OPENID_CONSUMER', 'pip', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
39 |
('SOCIAL_AUTH', 'easy_install', None, None), |
4 | 40 |
('LDT', 'pip', None, None), |
1
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
41 |
]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
42 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
43 |
if system_str == "Darwin": |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
44 |
INSTALLS.extend([ |
4 | 45 |
('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}), |
46 |
#('LXML', 'easy_install', None, {'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}), |
|
1
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
47 |
]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
48 |
else: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
49 |
INSTALLS.extend([ |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
50 |
('LXML', 'easy_install', None, None), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
51 |
]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
52 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
53 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
54 |
def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
55 |
return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS) |