Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37570835
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-alt-fix-blosc2-get-directories.patch
Скачать


--- pytables/setup.py.orig	2023-01-18 07:08:12.320883779 +0000
+++ pytables/setup.py	2023-02-03 06:57:04.258213973 +0000
@@ -262,11 +262,9 @@ if __name__ == "__main__":
 
     debug = "--debug" in sys.argv
 
-    blosc2_inc, blosc2_lib = get_blosc2_directories()
-
     # Global variables
-    lib_dirs = [blosc2_lib]
-    inc_dirs = [Path("hdf5-blosc/src"), Path("hdf5-blosc2/src"), blosc2_inc]
+    lib_dirs = []
+    inc_dirs = [Path("hdf5-blosc/src"), Path("hdf5-blosc2/src")]
     optional_libs = []
     copy_libs = []
 
@@ -274,6 +272,15 @@ if __name__ == "__main__":
     default_library_dirs = None
     default_runtime_dirs = None
 
+    blosc2_inc = blosc2_lib = None
+    if os.environ.get("PYTABLES_NO_BLOSC2_WHEEL", None) is None:
+        try:
+            blosc2_inc, blosc2_lib = get_blosc2_directories()
+            lib_dirs.append(blosc2_lib)
+            inc_dirs.append(blosc2_inc)
+        except EnvironmentError:
+            pass
+
     if os.name == "posix":
         prefixes = ("/usr/local", "/sw", "/opt", "/opt/local", "/usr", "/")
         prefix_paths = [Path(x) for x in prefixes]
@@ -691,7 +698,7 @@ if __name__ == "__main__":
     # Try to locate the compulsory and optional libraries.
     lzo2_enabled = False
     compiler = new_compiler()
-    if not BLOSC2_DIR:
+    if not BLOSC2_DIR and blosc2_inc is not None:
         # Inject the blosc2 directory as detected
         BLOSC2_DIR = os.path.dirname(blosc2_inc)
     for (package, location) in [
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin