mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 13:32:31 +00:00
python3-h5py: add version 2.9.0
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
19dee696a2
commit
f6a3e4b563
@ -0,0 +1,46 @@
|
|||||||
|
From 7e3b1745c1fef34683a0610381dd3308ad4d1ba9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||||
|
Date: Tue, 29 Jan 2019 17:08:32 +0800
|
||||||
|
Subject: [PATCH] cross compiling support
|
||||||
|
|
||||||
|
Remove useless dirs
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||||
|
---
|
||||||
|
setup_build.py | 4 ----
|
||||||
|
setup_configure.py | 2 +-
|
||||||
|
2 files changed, 1 insertion(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/setup_build.py b/setup_build.py
|
||||||
|
index 85b321a..2c78e92 100644
|
||||||
|
--- a/setup_build.py
|
||||||
|
+++ b/setup_build.py
|
||||||
|
@@ -53,10 +53,6 @@ if sys.platform.startswith('win'):
|
||||||
|
('_HDF5USEDLL_', None),
|
||||||
|
('H5_BUILT_AS_DYNAMIC_LIB', None)
|
||||||
|
])
|
||||||
|
-else:
|
||||||
|
- FALLBACK_PATHS['include_dirs'].extend(['/opt/local/include', '/usr/local/include'])
|
||||||
|
- FALLBACK_PATHS['library_dirs'].extend(['/opt/local/lib', '/usr/local/lib'])
|
||||||
|
-
|
||||||
|
|
||||||
|
class h5py_build_ext(build_ext):
|
||||||
|
|
||||||
|
diff --git a/setup_configure.py b/setup_configure.py
|
||||||
|
index a2de76a..197f2da 100644
|
||||||
|
--- a/setup_configure.py
|
||||||
|
+++ b/setup_configure.py
|
||||||
|
@@ -208,7 +208,7 @@ def autodetect_version(hdf5_dir=None):
|
||||||
|
else:
|
||||||
|
regexp = re.compile(r'^libhdf5.so')
|
||||||
|
|
||||||
|
- libdirs = ['/usr/local/lib', '/opt/local/lib']
|
||||||
|
+ libdirs = []
|
||||||
|
try:
|
||||||
|
if pkgconfig.exists("hdf5"):
|
||||||
|
libdirs.extend(pkgconfig.parse("hdf5")['library_dirs'])
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
30
meta-python/recipes-devtools/python/python3-h5py_2.9.0.bb
Normal file
30
meta-python/recipes-devtools/python/python3-h5py_2.9.0.bb
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
SUMMARY = "Provides both a high- and low-level interface to the HDF5 library from Python. "
|
||||||
|
HOMEPAGE = "https://www.h5py.org/"
|
||||||
|
SECTION = "devel/python"
|
||||||
|
LICENSE = "BSD"
|
||||||
|
LIC_FILES_CHKSUM = "file://setup.py;beginline=107;endline=107;md5=795ecad0d261c998cc526c84a822dff6"
|
||||||
|
|
||||||
|
SRC_URI = "git://github.com/h5py/h5py.git \
|
||||||
|
file://0001-cross-compiling-support.patch \
|
||||||
|
"
|
||||||
|
SRCREV ?= "8d96a14c3508de1bde77aec5db302e478dc5dbc4"
|
||||||
|
|
||||||
|
inherit setuptools3
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
|
DEPENDS = "python3-pkgconfig-native \
|
||||||
|
python3-cython-native \
|
||||||
|
python3-numpy-native \
|
||||||
|
python3-six-native \
|
||||||
|
python3 \
|
||||||
|
hdf5 \
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} = "python3-numpy \
|
||||||
|
python3-six \
|
||||||
|
"
|
||||||
|
|
||||||
|
export HDF5_VERSION="1.8.19"
|
||||||
Loading…
x
Reference in New Issue
Block a user