virtualenv/sync/res/res_create_env.py
author grandjoncl
Thu, 11 Oct 2012 16:39:05 +0200
changeset 842 ca38abd140b3
parent 671 fc56b4c9e4f3
permissions -rw-r--r--
Corrections of the code for the embed popup. Functions are now in the embed_popup.js With chrome the player used to play the video even when it wasn't supposed to be displayed and kept playing when we hid the player. When we changed between div and iframe the player started even when it was suppose to be hidden. It's now solved.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
632
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import platform
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
671
fc56b4c9e4f3 correct virtualenv creation
ymh <ymh.work@gmail.com>
parents: 668
diff changeset
     3
from lib_create_env import lib_generate_install_methods
632
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
system_str = platform.system()
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
668
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
     7
INSTALLS = [#(key,method, option_str, dict_extra_env)
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
     8
    'PYCRYPTO',
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
     9
    'SSH',
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
    10
    'FABRIC',
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
    11
    'MERCURIAL',
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
    12
]
632
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
671
fc56b4c9e4f3 correct virtualenv creation
ymh <ymh.work@gmail.com>
parents: 668
diff changeset
    14
OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip_setuptools", "use_distribute"]
632
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
671
fc56b4c9e4f3 correct virtualenv creation
ymh <ymh.work@gmail.com>
parents: 668
diff changeset
    17
    return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)
668
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 641
diff changeset
    18