Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37699186
en ru br
ALT Linux repositórios
S:3.8.0-alt3.2

Group :: Development/Python3
RPM: pytables

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: pytables-3.8.0-find-blosc2.patch
Download


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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009