python-mprpc: add new recipe

Add recipe for python-mprpc, a messagepack RPC library for python

Signed-off-by: Andrej Rode <andrej.rode@ettus.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Andrej Rode 2017-04-13 11:58:13 -07:00 committed by Martin Jansa
parent 622d3c1be2
commit 5bceadcfaa
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From bda99eab9036d46e7bb06b446d11cab0b1dd8093 Mon Sep 17 00:00:00 2001
From: Andrej Rode <andrej.rode@ettus.com>
Date: Mon, 10 Apr 2017 16:49:50 -0700
Subject: [PATCH] setup: remove find_packages and only install mprpc
Signed-off-by: Andrej Rode <andrej.rode@ettus.com>
---
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 5001d0c..4c0ba75 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from setuptools import setup, Extension, find_packages
+from setuptools import setup, Extension
setup(
name='mprpc',
@@ -10,7 +10,7 @@ setup(
author='Studio Ousia',
author_email='ikuya@ousia.jp',
url='http://github.com/studio-ousia/mprpc',
- packages=find_packages(),
+ packages=['mprpc'],
ext_modules=[
Extension('mprpc.client', ['mprpc/client.c']),
Extension('mprpc.server', ['mprpc/server.c'])
--
2.10.2

View File

@ -0,0 +1,17 @@
SUMMARY = "A gevent based messagpack rpc library"
DESCRIPTION = "mprpc is a fast implementation of the messagepack rpc protocol for python. \
It is based on gevent for handling connections and enabling concurrent connections."
HOMEPAGE = "https://github.com/studio-ousia/mprpc"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4ba825394aec026b5f94edca44426859"
DEPENDS += "python-gevent"
RDEPENDS_${PN} += "python-gevent python-msgpack python-gsocketpool"
SRC_URI_append = " \
file://0001-fix_setup_py.patch;patch=1;pnum=1 \
"
SRC_URI[md5sum] = "449e6239eb5ff07b9cceb86e1ab0c2ee"
SRC_URI[sha256sum] = "5881cc7fbb8de814e2b4aa5958bfe147c5c301e46749190f0e6abf373cf56d82"
inherit pypi setuptools