File: libtbx_env-per-python-version.patch

package info (click to toggle)
cctbx 2024.10%2Bds2%2B~3.22.1%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 136,708 kB
  • sloc: python: 892,916; cpp: 299,439; ansic: 22,625; fortran: 18,268; javascript: 2,046; sh: 1,114; sql: 632; csh: 519; java: 368; makefile: 317; xml: 25
file content (21 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
Date: Sat, 16 Jul 2022 14:57:18 +0200
Subject: libtbx_env per python version

---
 libtbx/env_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libtbx/env_config.py b/libtbx/env_config.py
index ec65361..c00edbb 100644
--- a/libtbx/env_config.py
+++ b/libtbx/env_config.py
@@ -3092,7 +3092,7 @@ def get_installed_path():
   if sys.platform == 'win32':
     installed_path = os.path.join(sys.prefix, 'Library', 'share', 'cctbx')
   else:
-    installed_path = os.path.join(get_conda_prefix(), 'share', 'cctbx')
+    installed_path = os.path.join(get_conda_prefix(), 'lib', 'cctbx', f'python{sys.version_info[0]}.{sys.version_info[1]}')
   return installed_path
 
 def _get_env(build_path, env_name='libtbx_env'):