diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2025-01-01 18:02:01 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:29 +0100 |
commit | 3044e3821c5cbe54cd59ef7281fe5a099f368415 (patch) | |
tree | 9dc6a1301d828de6935e89bbdc92e47bbe204142 /gnu/packages/python-xyz.scm | |
parent | c6d5ac04d9e9f1475e86365a2e7d911ee51da381 (diff) |
gnu: python-tables: Fix reference to library.
* gnu/packages/python-xyz.scm (python-tables)[arguments]: Add phase
'fix-reference-to-blosc2.
Change-Id: If1e5f9ccf8e6e6c37f9c6521a98b208e0fc1fd01
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 61f2955ee0..8b32458c3f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16948,6 +16948,15 @@ tasks, sockets, files, locks, and queues.") (substitute* "setup.py" (("cpu_flags = .*") "cpu_flags = ['sse2']\n")))) + (add-after 'unpack 'fix-reference-to-blosc2 + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "tables/__init__.py" + (("( +)os.path.join\\(current_dir, blosc2_lib_hardcoded\\)," + m indent) + (string-append indent + "\"" + (search-input-file inputs "/lib/libblosc2.so") + "\",\n" m))))) (add-before 'build 'set-LD_LIBRARY_PATH (lambda _ ;; The setup.py build system makes use of ctypes.CDLL, which |