virtualenv/web/res/res_create_env.py
author ymh <ymh.work@gmail.com>
Sun, 09 Sep 2012 21:35:10 +0200
changeset 243 1f2840354865
parent 229 8d01de23b56b
child 271 8f77cf71ab02
permissions -rw-r--r--
correct filter on tag completion to avoid tags that are not translated

import platform

from lib_create_env import lib_generate_install_methods

system_str = platform.system()

INSTALLS = [ #(key,method, option_str, dict_extra_env)
    'LXML',
    'PSYCOPG2',
    'PIL', 
    'DJANGO',
    'DJANGO-EXTENSIONS',
    'SOUTH',
    'HTTPLIB2',
    'HAYSTACK',
    'WHOOSH',
    'WIKITOOLS',
    'ISODATE',
    'RDFLIB',
    'SPARQLWRAPPER',
    'PYYAML',
]

if system_str == 'Windows':
    INSTALLS.append('PYSTEMMER')

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, OPTIONS_TO_ADD)