virtualenv/web/res/res_create_env.py
author ymh <ymh.work@gmail.com>
Thu, 14 Jun 2012 18:26:25 +0200
changeset 671 fc56b4c9e4f3
parent 668 b52724db32ab
child 675 38ed996a23d8
permissions -rw-r--r--
correct virtualenv creation

import platform

from lib_create_env import lib_generate_install_methods

system_str = platform.system()


INSTALLS = [ #(key,method, option_str, dict_extra_env)
    'PYLUCENE',
    'PSYCOPG2',
    'SOUTH',
    'PIL', 
    'DJANGO',
    'DJANGO-EXTENSIONS',
    'DJANGO-REGISTRATION',
    'DJANGO-TAGGING',
    'DJANGO-PISTON',
    'HTTPLIB2',
    'OAUTH2',
    'DJANGO-OAUTH-PLUS',
    'OPENID',
    'DJANGO_OPENID_CONSUMER',
    'SOCIAL_AUTH',
    'DJANGO_GUARDIAN',
    'SORL_THUMBNAIL',
    'LXML',
]

if system_str == 'Windows':
    INSTALLS.insert(0, 'JCC')

OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools', '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)