| author | ymh <ymh.work@gmail.com> |
| Thu, 09 Jun 2011 16:34:28 +0200 | |
| changeset 15 | a9136d8f0b4a |
| parent 10 | 9ea5f8ba8e71 |
| child 122 | fde8335a037c |
| permissions | -rw-r--r-- |
| 2 | 1 |
from lib_create_env import (lib_generate_install_methods, install_pylucene, |
| 10 | 2 |
install_psycopg2, install_pystemmer, install_libyaml) |
| 0 | 3 |
import platform |
4 |
||
5 |
||
6 |
system_str = platform.system() |
|
7 |
||
8 |
if system_str == 'Windows': |
|
9 |
INSTALLS = [ |
|
10 |
('JCC','easy_install',None,None), |
|
11 |
('PSYCOPG2',install_psycopg2,None,None), |
|
12 |
('PYLUCENE','easy_install',None,None), |
|
| 2 | 13 |
('PYYAML','easy_install',None,None), |
| 10 | 14 |
('PYSTEMMER',install_pystemmer,None,None), |
| 0 | 15 |
] |
16 |
else: |
|
17 |
INSTALLS = [ |
|
18 |
('PYLUCENE',install_pylucene,None,None), |
|
19 |
('PSYCOPG2', 'pip', None, None), |
|
| 2 | 20 |
# ('LIBYAML', install_libyaml, None, None) |
21 |
('PYYAML', 'pip', None, None), |
|
| 0 | 22 |
] |
23 |
||
24 |
if system_str == 'Linux': |
|
25 |
INSTALLS.extend([ |
|
26 |
('DISTRIBUTE', 'pip', None, None), |
|
27 |
]) |
|
28 |
||
29 |
INSTALLS.extend([ #(key,method, option_str, dict_extra_env) |
|
30 |
('PIL', 'easy_install', None, None), |
|
31 |
('DJANGO','pip', None, None), |
|
32 |
('DJANGO-EXTENSIONS', 'pip', None, None), |
|
33 |
('HTTPLIB2', 'pip', None, None), |
|
34 |
('SOUTH', 'pip', None, None), |
|
35 |
('WHOOSH', 'pip', None, None), |
|
36 |
('HAYSTACK', 'pip', None, None), |
|
|
15
a9136d8f0b4a
add commant to reorder tags and query wikipedia
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
37 |
('WIKITOOLS', 'pip', None, None), |
| 0 | 38 |
]) |
39 |
||
40 |
if system_str == "Darwin": |
|
41 |
INSTALLS.extend([ |
|
42 |
('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}), |
|
43 |
]) |
|
44 |
else: |
|
45 |
INSTALLS.extend([ |
|
46 |
('LXML', 'easy_install', None, None), |
|
47 |
]) |
|
48 |
||
49 |
||
50 |
def generate_install_methods(path_locations, src_base, Logger, call_subprocess): |
|
51 |
return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS) |