diff -r 5c3f8477efcc -r 1f2840354865 virtualenv/web/res/res_create_env.py --- a/virtualenv/web/res/res_create_env.py Sat Sep 08 03:52:24 2012 +0200 +++ b/virtualenv/web/res/res_create_env.py Sun Sep 09 21:35:10 2012 +0200 @@ -1,52 +1,35 @@ -from lib_create_env import (lib_generate_install_methods, install_pylucene, - install_psycopg2, install_pystemmer, install_libyaml) import platform +from lib_create_env import lib_generate_install_methods system_str = platform.system() -if system_str == 'Windows': - INSTALLS = [ - ('JCC','easy_install',None,None), - ('PSYCOPG2',install_psycopg2,None,None), - ('PYLUCENE','easy_install',None,None), - ('PYYAML','easy_install',None,None), - ('PYSTEMMER',install_pystemmer,None,None), - ] -else: - INSTALLS = [ - ('PYLUCENE',install_pylucene,None,None), - ('PSYCOPG2', 'pip', None, None), -# ('LIBYAML', install_libyaml, None, None) - ('PYYAML', 'pip', None, None), - ] - -if system_str == 'Linux': - INSTALLS.extend([ - ('DISTRIBUTE', 'pip', None, None), - ]) +INSTALLS = [ #(key,method, option_str, dict_extra_env) + 'LXML', + 'PSYCOPG2', + 'PIL', + 'DJANGO', + 'DJANGO-EXTENSIONS', + 'SOUTH', + 'HTTPLIB2', + 'HAYSTACK', + 'WHOOSH', + 'WIKITOOLS', + 'ISODATE', + 'RDFLIB', + 'SPARQLWRAPPER', + 'PYYAML', +] -INSTALLS.extend([ #(key,method, option_str, dict_extra_env) - ('PIL', 'easy_install', None, None), - ('DJANGO','pip', None, None), - ('DJANGO-EXTENSIONS', 'easy_install', None, None), - ('HTTPLIB2', 'pip', None, None), - ('SOUTH', 'pip', None, None), - ('WHOOSH', 'pip', None, None), - ('HAYSTACK', 'pip', None, None), - ('WIKITOOLS', 'pip', None, None), - ('SPARQLWRAPPER', 'pip', None, None), -]) +if system_str == 'Windows': + INSTALLS.append('PYSTEMMER') -if system_str == "Darwin": - INSTALLS.extend([ - ('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}), - ]) -else: - INSTALLS.extend([ - ('LXML', 'easy_install', None, None), - ]) +if system_str == "Linux": + INSTALLS.insert(2, 'DISTRIBUTE') +OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] +if system_str != 'Linux': + OPTIONS_TO_ADD.append('use_distribute') def generate_install_methods(path_locations, src_base, Logger, call_subprocess): - return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS) + return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)