summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-11 20:26:46 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-15 12:37:39 (GMT)
commit033e218c34398afc1c52c7d30216e13bf5242582 (patch)
treed1ca193d44a2359178c179064a124f830d039483
parent527302e73f0ab19b85c2ddf3ff2fd407dd32957b (diff)
downloadbuildroot-033e218c34398afc1c52c7d30216e13bf5242582.tar.gz
buildroot-033e218c34398afc1c52c7d30216e13bf5242582.tar.bz2
python-protobuf: convert to the Python package infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/python-protobuf/python-protobuf.mk20
1 files changed, 4 insertions, 16 deletions
diff --git a/package/python-protobuf/python-protobuf.mk b/package/python-protobuf/python-protobuf.mk
index dcf67c2..36ab644 100644
--- a/package/python-protobuf/python-protobuf.mk
+++ b/package/python-protobuf/python-protobuf.mk
@@ -9,20 +9,8 @@ PYTHON_PROTOBUF_SOURCE = $(PROTOBUF_SOURCE)
PYTHON_PROTOBUF_SITE = $(PROTOBUF_SITE)
PYTHON_PROTOBUF_LICENSE = BSD-3c
PYTHON_PROTOBUF_LICENSE_FILES = COPYING.txt
+PYTHON_PROTOBUF_DEPENDENCIES = host-protobuf
+PYTHON_PROTOBUF_SETUP_TYPE = setuptools
+PYTHON_PROTOBUF_SUBDIR = python
-PYTHON_PROTOBUF_DEPENDENCIES = python host-python-setuptools \
- host-python-distutilscross host-protobuf
-
-define PYTHON_PROTOBUF_BUILD_CMDS
- (cd $(@D)/python; \
- PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
- PATH=$(HOST_PATH) \
- $(HOST_DIR)/usr/bin/python setup.py build -x)
-endef
-
-define PYTHON_PROTOBUF_INSTALL_TARGET_CMDS
- (cd $(@D)/python; PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
- $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
-endef
-
-$(eval $(generic-package))
+$(eval $(python-package))