File: 0001-avoid-find_library.patch

package info (click to toggle)
python-lib25519 0~20241004.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: python: 229; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 728 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
22
23
24
25
26
27
From: =?utf-8?b?SmFuIE1vasW+w63FoQ==?= <jan.mojzis@gmail.com>
Date: Sat, 20 Sep 2025 07:31:24 +0200
Subject: avoid find_library
Forwarded: not-needed

---
 src/lib25519/_lib.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/lib25519/_lib.py b/src/lib25519/_lib.py
index 0e2b74e..83b5d68 100644
--- a/src/lib25519/_lib.py
+++ b/src/lib25519/_lib.py
@@ -4,12 +4,8 @@ Import shared library.
 
 
 from ctypes import CDLL as _CDLL
-from ctypes.util import find_library as _find_library
 
-_libname = _find_library('25519')
-if _libname is None:
-    raise FileNotFoundError("unable to locate library '25519'")
-_lib = _CDLL(_libname)
+_lib = _CDLL('lib25519.so.1')
 
 
 def _check_input(x, xlen, name):