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)
