xmipp3-installer 2.0.4__py3-none-any.whl → 2.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,7 +132,7 @@ def _run_source_command(source_name: str, source_repo: str, target_branch: Optio
132
132
  )
133
133
 
134
134
  branch_str = (
135
- f"{params.PARAMS[params.PARAM_BRANCH][params.LONG_VERSION]} {target_branch}"
135
+ f" {params.PARAMS[params.PARAM_BRANCH][params.LONG_VERSION]} {target_branch}"
136
136
  if target_branch else ""
137
137
  )
138
138
  return shell_handler.run_shell_command(f"git clone{branch_str} {source_repo}.git", cwd=paths.SOURCES_PATH)
@@ -29,6 +29,7 @@ class ConfigurationFileHandler(Singleton):
29
29
  self.show_errors = show_errors
30
30
  self.values = {}
31
31
  self.read_config()
32
+ self.read_env_variables()
32
33
  self.last_modified = self.__read_config_date()
33
34
 
34
35
  def read_config(self):
@@ -50,6 +51,17 @@ class ConfigurationFileHandler(Singleton):
50
51
  show_warnings=self.show_errors
51
52
  )
52
53
  }
54
+
55
+ def read_env_variables(self):
56
+ """### Reads the config variables present in the environment and updates the stored values with them."""
57
+ raw_variables = {
58
+ key[len(variables.ENVIRONMENT_VARIABLES_PREFIX):]: value
59
+ for key, value in os.environ.items()
60
+ if key.startswith(variables.ENVIRONMENT_VARIABLES_PREFIX)
61
+ }
62
+ self.values.update(
63
+ config_values_adapter.get_context_values_from_file_values(raw_variables)
64
+ )
53
65
 
54
66
  def write_config(self, overwrite: bool=False):
55
67
  """
@@ -46,3 +46,6 @@ CONFIG_VARIABLES = {
46
46
 
47
47
  # Do not pass this variables to CMake, only for installer logic
48
48
  INTERNAL_LOGIC_VARS = [SEND_INSTALLATION_STATISTICS, CMAKE, BUILD_TYPE]
49
+
50
+ # Prefix to be used when setting config variables in the environment
51
+ ENVIRONMENT_VARIABLES_PREFIX = "XMIPP3_"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmipp3-installer
3
- Version: 2.0.4
3
+ Version: 2.1.0
4
4
  Summary: Package to handle the installation of Xmipp3
5
5
  Author-email: Martín Salinas <ssalinasmartin@gmail.com>
6
6
  License: GPL-3.0-only
@@ -49,6 +49,13 @@ To run such help, once the package is installed, run:
49
49
  xmipp3_installer -h
50
50
  ```
51
51
 
52
+ ## Installation telemetry
53
+ This installer collects **basic information about your installation environment** (such as library versions, system architecture, and operating system) to improve compatibility, performance, and stability.
54
+
55
+ If you prefer **not to send this data**, you can disable data collection by simply setting the environment variable `XMIPP3_SEND_INSTALLATION_STATISTICS=OFF` before running the installation command.
56
+
57
+ For more information, please visit [the documentation](https://i2pc.github.io/docs/Others/Enhancing/index.html#data-collection).
58
+
52
59
  ## Testing the code
53
60
  In order to run the tests for this project, the project needs to be installed in development mode and also the test dependencies need to be installed.
54
61
 
@@ -37,7 +37,7 @@ xmipp3_installer/installer/modes/__init__.py,sha256=-8F3Qpzmc9NjP0liDr0U-euw9dDP
37
37
  xmipp3_installer/installer/modes/mode_all_executor.py,sha256=tEzhTDWT_5dQXmI-I1X4Rcz2sCw5kX15_DZ-5gsO1hk,2288
38
38
  xmipp3_installer/installer/modes/mode_config_executor.py,sha256=TPOHxUzAMZX1F_2W4MdsW_DL0UNZVOTbeKc91bYVDjc,1966
39
39
  xmipp3_installer/installer/modes/mode_executor.py,sha256=WTjsIKfxE2JfTfp79uAe3KvdbusBY0xMVN7DIy5SK5g,1332
40
- xmipp3_installer/installer/modes/mode_get_sources_executor.py,sha256=DPYBiMdFlgqNpYyUlPX2wM9zSv3avDoHakkteHACYFU,5393
40
+ xmipp3_installer/installer/modes/mode_get_sources_executor.py,sha256=kZ3jvAju4aJeVzeJkSu66HkRh7SIQ9Y_-hd7j6AMx1g,5394
41
41
  xmipp3_installer/installer/modes/mode_git_executor.py,sha256=9BPcHV6n-rASrMfnUxYb6nzcBHpct3RWc4I4hVYy1-U,1719
42
42
  xmipp3_installer/installer/modes/mode_selector.py,sha256=2uRrCXt-PfHAFWWx3kslgIUBzK7IdmBpokYW8T9CW70,1568
43
43
  xmipp3_installer/installer/modes/mode_version_executor.py,sha256=j9-K44pkXMC1QUBKn9IKwQvKADwNCAqUtFLcAcAWG1Q,6749
@@ -54,17 +54,17 @@ xmipp3_installer/installer/modes/mode_sync/mode_get_models_executor.py,sha256=9U
54
54
  xmipp3_installer/installer/modes/mode_sync/mode_sync_executor.py,sha256=K21SiXm_iUGmhJcQK9APZu3zn6ps21KbvuwavqkosBQ,1795
55
55
  xmipp3_installer/installer/modes/mode_sync/mode_test_executor.py,sha256=5OcxZM4DpS-qCHCeYVVHSB_aL7ZLQezWrfpLwRad_aw,5411
56
56
  xmipp3_installer/repository/__init__.py,sha256=RzgHN49tR493qbnZuqM18G_TRu3cYAMFYrK2xVuDIzg,66
57
- xmipp3_installer/repository/config.py,sha256=0DaTPKIS8WTZZ4eYiQSPjuqV5Wl1ruT0c1r0Ol3I4-Q,9043
57
+ xmipp3_installer/repository/config.py,sha256=FAkLvjRYHx_m4UoDfBKjvo6x8C3H8l_48I2BXj_dSPg,9536
58
58
  xmipp3_installer/repository/invalid_config_line.py,sha256=962875j26zOW48mG4X0XgowhdFUCNbX7KjllwQm-u-g,1222
59
59
  xmipp3_installer/repository/config_vars/__init__.py,sha256=C6INj3Y2fmN2HrpEWA2785LHdzoWeAf_kV4ZMQbvIjc,128
60
60
  xmipp3_installer/repository/config_vars/config_values_adapter.py,sha256=bpGNRcoJnvM1psgjHXaT0lKa0IXLHwNrXnXZpvz208Q,4420
61
61
  xmipp3_installer/repository/config_vars/default_values.py,sha256=eIUVE8G5I7VP4T3ilanMnAwxyBpAUipgMNopYcM4V1U,1125
62
- xmipp3_installer/repository/config_vars/variables.py,sha256=U2LyYIitxGIO7cP_IG0lfkOQ1IrvFZTOp1l6O98N_34,1513
62
+ xmipp3_installer/repository/config_vars/variables.py,sha256=NUUe6NDx8kR7oMMjoSGoVqJ4cbgDHynvTkBDJluHqgc,1627
63
63
  xmipp3_installer/shared/file_operations.py,sha256=cwYe3P0Iz3Sq2U4DqANx4AsL1QmqCU-VW2T3C0YcVLA,464
64
64
  xmipp3_installer/shared/singleton.py,sha256=nqsCg_rTCdWld2EeLzmvQLjk_goROWWyia3wN7aqHUE,557
65
- xmipp3_installer-2.0.4.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
66
- xmipp3_installer-2.0.4.dist-info/METADATA,sha256=kDRWRIiBwrHF7D6KXrM0-hzZoa0iT4ujTykaS44M-rk,4842
67
- xmipp3_installer-2.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
- xmipp3_installer-2.0.4.dist-info/entry_points.txt,sha256=AbvjNKF8d0LfHkuVMrBz26YhjkzL37m4FYUDDs9UFB4,68
69
- xmipp3_installer-2.0.4.dist-info/top_level.txt,sha256=PbpSNvfVKVhceWxY482CNYzjSnGbQXl782LlWh39uuw,17
70
- xmipp3_installer-2.0.4.dist-info/RECORD,,
65
+ xmipp3_installer-2.1.0.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
66
+ xmipp3_installer-2.1.0.dist-info/METADATA,sha256=vlUdaS-GSmdAZV50SUcDKxezLR5Y-GCeZ3uB9SWsfEw,5405
67
+ xmipp3_installer-2.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
68
+ xmipp3_installer-2.1.0.dist-info/entry_points.txt,sha256=AbvjNKF8d0LfHkuVMrBz26YhjkzL37m4FYUDDs9UFB4,68
69
+ xmipp3_installer-2.1.0.dist-info/top_level.txt,sha256=PbpSNvfVKVhceWxY482CNYzjSnGbQXl782LlWh39uuw,17
70
+ xmipp3_installer-2.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5