File: 0001-avoid-find_library.patch

package info (click to toggle)
python-lib25519 0~20241004.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 120 kB
  • sloc: python: 179; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 701 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
25
From: =?utf-8?b?SmFuIE1vasW+w63FoQ==?= <jan.mojzis@gmail.com>
Date: Fri, 28 Feb 2025 12:58:33 +0100
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 f2ca205..ce9b631 100644
--- a/src/lib25519/_lib.py
+++ b/src/lib25519/_lib.py
@@ -1,10 +1,6 @@
-from ctypes.util import find_library as _find_library
 from ctypes import CDLL as _CDLL
 
-_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):