virtualenv/setup/res/res_create_env.py
author grandjoncl
Mon, 03 Dec 2012 16:12:53 +0100
changeset 1007 a6d47caa7fc0
parent 744 960e4d8d8acd
permissions -rw-r--r--
creation of a function in order to avoid using settings.WEB_URL + reverse in the views. Function to get the web_url using site domain replacement in the templates of WEB_URL + templatetag url by the templatetag absurl

import platform

from lib_create_env import lib_generate_install_methods

system_str = platform.system()


INSTALLS = [#(key,method, option_str, dict_extra_env)
]

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)