equal
deleted
inserted
replaced
1 import platform |
1 import platform |
2 |
2 |
3 from lib_create_env import lib_generate_install_methods |
3 from lib_create_env import lib_generate_install_methods |
4 |
4 |
5 system_str = platform.system() |
5 system_str = platform.system() |
|
6 |
6 |
7 |
7 INSTALLS = [ # (key,method, option_str, dict_extra_env) |
8 INSTALLS = [ # (key,method, option_str, dict_extra_env) |
8 {'requirement':'requirements.txt', |
9 {'requirement':'requirements.txt', |
9 'install': {'option_str': None, |
10 'install': {'option_str': None, |
10 'dict_extra_env': {'STATIC_DEPS':'true', 'LIBXML2_VERSION': '2.9.2', 'LIBXSLT_VERSION': '1.1.28', 'LIBICONV_VERSION': '1.14'} if system_str == 'Darwin' else None}}, |
11 'dict_extra_env': {'STATIC_DEPS':'true', 'LIBXML2_VERSION': '2.9.2', 'LIBXSLT_VERSION': '1.1.28', 'LIBICONV_VERSION': '1.14'} if system_str == 'Darwin' else None}}, |
24 # 'SPARQLWRAPPER', |
25 # 'SPARQLWRAPPER', |
25 # 'PYYAML', |
26 # 'PYYAML', |
26 # 'REQUESTS', |
27 # 'REQUESTS', |
27 # 'PYELASTICSEARCH', |
28 # 'PYELASTICSEARCH', |
28 # 'EASYTHUMBNAIL', |
29 # 'EASYTHUMBNAIL', |
|
30 'PKGCONFIG', |
|
31 'SQLITE', |
|
32 'UNIXODBC', |
|
33 'RAPTOR2', |
|
34 'RASQAL', |
|
35 'REDLAND', |
|
36 'REDLAND_BINDINGS', |
29 ] |
37 ] |
30 |
38 |
31 if system_str == 'Windows': |
39 OPTIONS_TO_ADD = {'type_install': 'local', 'unzip_setuptools': True} |
32 INSTALLS.append('PYSTEMMER') |
|
33 |
|
34 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools'] |
|
35 |
40 |
36 def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
41 def generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess): |
37 return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |
42 return lib_generate_install_methods(path_locations, src_base, run_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD) |