virtualenv/sync/res/res_create_env.py
author ymh <ymh.work@gmail.com>
Fri, 25 May 2012 16:33:16 +0200
changeset 641 7d5640606813
parent 632 e85856bfd59b
child 668 b52724db32ab
permissions -rw-r--r--
add missing icons + correct virtualenv creation
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
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
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
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
INSTALLS = [#(key,method, option_str, dict_extra_env)
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    ('DISTRIBUTE', 'pip', None, None),
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    ('PYCRYPTO', 'pip', None, None),
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    ('SSH', 'pip', None, None),
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    ('FABRIC', 'pip', None, None),
641
7d5640606813 add missing icons + correct virtualenv creation
ymh <ymh.work@gmail.com>
parents: 632
diff changeset
    13
    ('MERCURIAL', 'pip', None, None),
632
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
]
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):    
e85856bfd59b new sync script using fabric
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS)