script/virtualenv/script/res/res_create_env.py
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Fri, 29 Nov 2013 14:42:14 +0100
changeset 1017 82d7a7efea2a
parent 957 e4d0094f097b
permissions -rw-r--r--
Change event edito for mediapartlive

import platform

from lib_create_env import lib_generate_install_methods

system_str = platform.system()

if system_str == "Darwin":        
    lxml_options = {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.9.1', 'LIBXSLT_VERSION': '1.1.28', 'LIBICONV_VERSION': '1.14'}
else:
    lxml_options = None


INSTALLS = [ #(key,method, option_str, dict_extra_env)
    {'requirement':'requirement.txt', 'install': {'option_str': None, 'dict_extra_env': lxml_options}},
#     'SIX',
#     'WSGIREF',
#     'HTTPLIB2',
#     'OAUTH2',
#     'LXML',
#     'PSYCOPG2',
#     'ANYJSON',
#     'LOCKFILE',
#     'DAEMON',
#     'PYTZ',
#     'DATEUTIL',
#     'SIMPLEJSON',
#     'SQLALCHEMY',
#     'TWITTER',
#     'TWITTER-TEXT',
#     'REQUESTS',
#     'OAUTHLIB',
#     'REQUESTS-OAUTHLIB',
#     'BLESSINGS',    
]

OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools']

def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess):    
    return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)