mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: python-tables: Fix reference to library.
* gnu/packages/python-xyz.scm (python-tables)[arguments]: Add phase 'fix-reference-to-blosc2. Change-Id: If1e5f9ccf8e6e6c37f9c6521a98b208e0fc1fd01
This commit is contained in:
parent
efd448dce3
commit
c7c784f7e7
1 changed files with 9 additions and 0 deletions
|
@ -16935,6 +16935,15 @@ (define-public python-tables
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue