Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37564582
en ru br
Репозитории ALT
S:3.8.0-alt3.2
5.1: 2.2b2-alt1.svn20090911
www.altlinux.org/Changes

Группа :: Development/Python3
Пакет: pytables

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pytables-3.8.0-find-blosc2.patch
Скачать


diff --git a/tables/__init__.py b/tables/__init__.py
index 168ee4e1..5307ce41 100644
--- a/tables/__init__.py
+++ b/tables/__init__.py
@@ -8,6 +8,7 @@ to efficiently cope with extremely large amounts of data.
 """
 import os
 from ctypes import cdll
+from ctypes.util import find_library
 import platform
 
 
@@ -15,13 +16,7 @@ import platform
 # try this directory (it should be automatically copied in setup.py).
 current_dir = os.path.dirname(__file__)
 platform_system = platform.system()
-blosc2_lib = "libblosc2"
-if platform_system == "Linux":
-    blosc2_lib += ".so"
-elif platform_system == "Darwin":
-    blosc2_lib += ".dylib"
-else:
-    blosc2_lib += ".dll"
+blosc2_lib = find_library("libblosc2")
 try:
     cdll.LoadLibrary(blosc2_lib)
 except OSError:
@@ -78,7 +73,7 @@ from .earray import EArray
 from .vlarray import VLArray
 from .unimplemented import UnImplemented, Unknown
 from .expression import Expr
-from .tests import print_versions, test
+# from .tests import print_versions, test
 
 
 # List here only the objects we want to be publicly available
@@ -93,7 +88,7 @@ __all__ = [
     'FiltersWarning', 'DataTypeWarning',
     # Functions:
     'is_hdf5_file', 'is_pytables_file', 'which_lib_version',
-    'copy_file', 'open_file', 'print_versions', 'test',
+    'copy_file', 'open_file', # 'print_versions', 'test',
     'split_type', 'restrict_flavors',
     'set_blosc_max_threads', 'set_blosc2_max_threads',
     'silence_hdf5_messages',
@@ -175,4 +170,4 @@ def get_hdf5_version():
         "the 'get_hdf5_version()' function is deprecated and could be "
         "removed in future versions. Please use 'tables.hdf5_version'",
         DeprecationWarning)
-    return hdf5_version
\ No newline at end of file
+    return hdf5_version
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin