File: fix-_find_lib.patch

package info (click to toggle)
python-pyepics 3.5.9%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,308 kB
  • sloc: python: 10,303; makefile: 109; javascript: 104; sh: 54
file content (24 lines) | stat: -rw-r--r-- 788 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
22
23
24
From: Andrius Merkys <merkys@debian.org>
Date: Sat, 5 Aug 2023 16:43:31 +0200
Subject: Fixing location of shared libraries.

---
 epics/ca.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/epics/ca.py
+++ b/epics/ca.py
@@ -284,10 +284,10 @@
         return dllpath
 
     # Test 2: look in installed python location for dll
-    dllpath = importlib_resources_files('epics.clibs') / clib_search_path(inp_lib_name)
+    #dllpath = importlib_resources_files('epics.clibs') / clib_search_path(inp_lib_name)
 
-    if (os.path.exists(dllpath) and os.path.isfile(dllpath)):
-        return dllpath
+    #if (os.path.exists(dllpath) and os.path.isfile(dllpath)):
+    #    return dllpath
 
     # Test 3: look through Python path and PATH env var for dll
     path_sep = ':'