bec-widgets 1.9.0__py3-none-any.whl → 1.9.1__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.
CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v1.9.1 (2024-12-10)
5
+
6
+ ### Bug Fixes
7
+
8
+ - **designer**: General way to find python lib on linux
9
+ ([`6563abf`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/6563abfddc9fc9baba6769022d6925545decdba9))
10
+
11
+
4
12
  ## v1.9.0 (2024-12-10)
5
13
 
6
14
  ### Features
@@ -200,13 +208,3 @@ Depending on the test, auto-updates are enabled or not.
200
208
 
201
209
 
202
210
  ## v1.3.3 (2024-11-07)
203
-
204
- ### Bug Fixes
205
-
206
- - **scan_control**: Devicelineedit kwargs readings changed to get name of the positioner
207
- ([`5fabd4b`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/5fabd4bea95bafd2352102686357cc1db80813fd))
208
-
209
- ### Documentation
210
-
211
- - Update outdated text in docs
212
- ([`4f0693c`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/4f0693cae34b391d75884837e1ae6353a0501868))
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -93,17 +93,24 @@ def patch_designer(): # pragma: no cover
93
93
  _extend_path_var("PATH", os.fspath(Path(sys._base_executable).parent), True)
94
94
  else:
95
95
  if sys.platform == "linux":
96
- suffix = f"{sys.abiflags}.so"
97
96
  env_var = "LD_PRELOAD"
97
+ current_pid = os.getpid()
98
+ with open(f"/proc/{current_pid}/maps", "rt") as f:
99
+ for line in f:
100
+ if "libpython" in line:
101
+ lib_path = line.split()[-1]
102
+ os.environ[env_var] = lib_path
103
+ break
104
+
98
105
  elif sys.platform == "darwin":
99
106
  suffix = ".dylib"
100
107
  env_var = "DYLD_INSERT_LIBRARIES"
108
+ version = f"{major_version}.{minor_version}"
109
+ library_name = f"libpython{version}{suffix}"
110
+ lib_path = str(Path(sysconfig.get_config_var("LIBDIR")) / library_name)
111
+ os.environ[env_var] = lib_path
101
112
  else:
102
113
  raise RuntimeError(f"Unsupported platform: {sys.platform}")
103
- version = f"{major_version}.{minor_version}"
104
- library_name = f"libpython{version}{suffix}"
105
- lib_path = str(Path(sysconfig.get_config_var("LIBDIR")) / library_name)
106
- os.environ[env_var] = lib_path
107
114
 
108
115
  if is_pyenv_python() or is_virtual_env():
109
116
  # append all editable packages to the PYTHONPATH
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=bAWGX_NR9rQZmv_bmyLXkEMRreWp0JzVNpsNTxk0NwE,8637
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=vk99JDb0HVTJZsEm6TJ8g-RemuqHi7tQsDKkk-GVF2k,7866
5
+ CHANGELOG.md,sha256=1T0umYGmnO8jBPR9noMRoyZfbNXUqcCo6ut1tdKJuyQ,7702
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=QjMuyUkfdYQ7l0gazbGYeGbf96Sx3xRfbSaBsM9rcrY,1308
7
+ PKG-INFO,sha256=Ai9I6xl-hhKbLQ17bEo4I-J4OAfBA-Nk7-cLTUpgogM,1308
8
8
  README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
9
- pyproject.toml,sha256=_ntcDbeIJWyJtMIlP5r3Hq9h1z4vuth-KYYJyK14PF0,2586
9
+ pyproject.toml,sha256=PKETqZSjL7GI61B8vjRVywLX7CH668vUdLuKrcGu6wk,2586
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
12
12
  .gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
@@ -57,7 +57,7 @@ bec_widgets/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
57
57
  bec_widgets/tests/utils.py,sha256=D1v3JLzzbnX3HXBQCjoFlNz5cYhjqrRkFcjx3yptMJA,6687
58
58
  bec_widgets/utils/__init__.py,sha256=1930ji1Jj6dVuY81Wd2kYBhHYNV-2R0bN_L4o9zBj1U,533
59
59
  bec_widgets/utils/bec_connector.py,sha256=g40KPxhfuSHLlAa6dyO1PtC-9cQpN8ZGgn_IAEU_xD4,10070
60
- bec_widgets/utils/bec_designer.py,sha256=Z3MeMju-KmTz8POtm23VQfp4rvtD2sF6eIOKQkl2F7w,4729
60
+ bec_widgets/utils/bec_designer.py,sha256=XBy38NbNMoRDpvRx5lGP2XnJNG34YKZ7I-ARFkn-gzs,5017
61
61
  bec_widgets/utils/bec_dispatcher.py,sha256=OFmkx9vOz4pA4Sdc14QreyDZ870QYskJ4B5daVVeYg4,6325
62
62
  bec_widgets/utils/bec_signal_proxy.py,sha256=PKJ7v8pKrAaqA9XNDMZZBlhVtEInX-ae6_0m2cQhiEw,2107
63
63
  bec_widgets/utils/bec_table.py,sha256=nA2b8ukSeUfquFMAxGrUVOqdrzMoDYD6O_4EYbOG2zk,717
@@ -315,8 +315,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=Z
315
315
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
316
316
  bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
317
317
  bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
318
- bec_widgets-1.9.0.dist-info/METADATA,sha256=QjMuyUkfdYQ7l0gazbGYeGbf96Sx3xRfbSaBsM9rcrY,1308
319
- bec_widgets-1.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
320
- bec_widgets-1.9.0.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
321
- bec_widgets-1.9.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
322
- bec_widgets-1.9.0.dist-info/RECORD,,
318
+ bec_widgets-1.9.1.dist-info/METADATA,sha256=Ai9I6xl-hhKbLQ17bEo4I-J4OAfBA-Nk7-cLTUpgogM,1308
319
+ bec_widgets-1.9.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
320
+ bec_widgets-1.9.1.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
321
+ bec_widgets-1.9.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
322
+ bec_widgets-1.9.1.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "1.9.0"
7
+ version = "1.9.1"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [