mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
python-pyzmq: Add recipe for Python Zero Message Queue bindings.
Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
a84b65c7d0
commit
f54a98d408
|
|
@ -0,0 +1,26 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 62df445..1fdbdeb 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -213,12 +213,6 @@ def settings_from_prefix(prefix=None, bundle_libzmq_dylib=False):
|
||||
pass
|
||||
# unused rpath args for OS X:
|
||||
# settings['extra_link_args'] = ['-Wl,-rpath','-Wl,$ORIGIN/..']
|
||||
- else:
|
||||
- settings['runtime_library_dirs'] += ['$ORIGIN/..']
|
||||
- elif sys.platform != 'darwin':
|
||||
- settings['runtime_library_dirs'] += [
|
||||
- os.path.abspath(x) for x in settings['library_dirs']
|
||||
- ]
|
||||
|
||||
return settings
|
||||
|
||||
@@ -592,8 +586,6 @@ class Configure(build_ext):
|
||||
pass
|
||||
# unused rpath args for OS X:
|
||||
# settings['extra_link_args'] = ['-Wl,-rpath','-Wl,$ORIGIN/../zmq']
|
||||
- else:
|
||||
- settings['runtime_library_dirs'] = [ os.path.abspath(pjoin('.', 'zmq')) ]
|
||||
|
||||
line()
|
||||
info("Configure: Autodetecting ZMQ settings...")
|
||||
27
meta-python/recipes-devtools/python/python-pyzmq_14.5.0.bb
Normal file
27
meta-python/recipes-devtools/python/python-pyzmq_14.5.0.bb
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
SUMMARY = "Pyzmq provides Zero message queue access for the Python language"
|
||||
HOMEPAGE = "http://zeromq.org/bindings:python"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.BSD;md5=11c65680f637c3df7f58bbc8d133e96e"
|
||||
DEPENDS = "zeromq"
|
||||
|
||||
SRC_URI = "https://pypi.python.org/packages/source/p/pyzmq/pyzmq-${PV}.tar.gz \
|
||||
file://club-rpath-out.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "8d3351a8ca2ca2a272a3f96bcb963e41"
|
||||
SRC_URI[sha256sum] = "5d6e045634456cf5496f50871fd3e3a5ede2b90433284dbfe985bb67c97f77bd"
|
||||
|
||||
S = "${WORKDIR}/pyzmq-${PV}"
|
||||
|
||||
inherit setuptools pkgconfig
|
||||
|
||||
FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/zmq/backend/cython/.debug"
|
||||
|
||||
do_compile_prepend() {
|
||||
echo [global] > ${S}/setup.cfg
|
||||
echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg
|
||||
echo have_sys_un_h = True >> ${S}/setup.cfg
|
||||
echo skip_check_zmq = True >> ${S}/setup.cfg
|
||||
echo libzmq_extension = False >> ${S}/setup.cfg
|
||||
echo no_libzmq_extension = True >> ${S}/setup.cfg
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user