virtualenv/sync/res/res_create_env.py
author ymh <ymh.work@gmail.com>
Fri, 16 Nov 2012 12:53:37 +0100
changeset 34 5da687a9458d
parent 6 9e29d68d48f1
permissions -rwxr-xr-x
Fix the ldt lib name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     1
import platform
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     2
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     3
from lib_create_env import lib_generate_install_methods
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     4
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     5
system_str = platform.system()
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     6
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     7
INSTALLS = [#(key,method, option_str, dict_extra_env)
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     8
    'PYCRYPTO',
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
     9
    'SSH',
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    10
    'FABRIC',
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    11
    'MERCURIAL',
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    12
]
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    13
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    14
OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip_setuptools", "use_distribute"]
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    15
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    16
def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    17
    return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)
9e29d68d48f1 fat commit to add a platform instance.
cavaliet
parents:
diff changeset
    18