File: libtbx_env-per-python-version.patch

package info (click to toggle)
cctbx 2022.9%2Bds2%2B~3.11.2%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 130,052 kB
  • sloc: python: 815,067; cpp: 289,996; ansic: 22,472; fortran: 18,268; javascript: 1,852; sh: 1,145; sql: 632; csh: 519; java: 368; makefile: 316; xml: 25
file content (21 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
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 6dcdf2a..cab241a 100644
--- a/libtbx/env_config.py
+++ b/libtbx/env_config.py
@@ -3151,7 +3151,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'):