virtualenv/setup/res/res_create_env.py
author grandjoncl
Thu, 20 Dec 2012 15:22:42 +0100
branchmodifications_relative_ldtxml
changeset 1044 e3902e1bd785
parent 744 960e4d8d8acd
permissions -rw-r--r--
modifications to have relative src for media in the xml ldt of a project. - Migration in order to set all the project ldt with the new values in the xml. If the media has a content that doesn't exist, the media is erased. If the project has no valid media, the project is deleted. There is a test in project_tests. - The migration uses the command : set_projectldtiri - The command set_projectldtiri uses the function in utils relative_src_xml that returns an xml. The command deletes the projects that have no ldt or the ldt isn't valid (empty string) - Modifications in lignesdetemps to have absolute urls in the xml when we open a project or in the research when we display the results in lignes de temps
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import platform
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
744
960e4d8d8acd small change and V01.16
cavaliet
parents: 671
diff changeset
     3
from lib_create_env import lib_generate_install_methods
47
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
50
0d59e0522d36 simplify virtualenv creation script
ymh <ymh.work@gmail.com>
parents: 49
diff changeset
     5
system_str = platform.system()
47
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
50
0d59e0522d36 simplify virtualenv creation script
ymh <ymh.work@gmail.com>
parents: 49
diff changeset
     8
INSTALLS = [#(key,method, option_str, dict_extra_env)
0d59e0522d36 simplify virtualenv creation script
ymh <ymh.work@gmail.com>
parents: 49
diff changeset
     9
]
47
4ed054be603f improve create env script creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
671
fc56b4c9e4f3 correct virtualenv creation
ymh <ymh.work@gmail.com>
parents: 668
diff changeset
    11
OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip-setuptools", "use_distribute"]
668
b52724db32ab improve sync script and virtualenv creation
ymh <ymh.work@gmail.com>
parents: 615
diff changeset
    12
50
0d59e0522d36 simplify virtualenv creation script
ymh <ymh.work@gmail.com>
parents: 49
diff changeset
    13
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
    14
    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: 615
diff changeset
    15