Commit 1825edec authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

python-ipy: convert to the Python package infrastructure

parent d26c5bc2
Loading
Loading
Loading
Loading
+2 −15
Original line number Diff line number Diff line
@@ -6,21 +6,8 @@

PYTHON_IPY_VERSION = IPy-0.75
PYTHON_IPY_SITE    = $(call github,haypo,python-ipy,$(PYTHON_IPY_VERSION))
PYTHON_IPY_DEPENDENCIES = host-python python
PYTHON_IPY_LICENSE = BSD-3c
PYTHON_IPY_LICENSE_FILES = COPYING
PYTHON_IPY_SETUP_TYPE = distutils

define PYTHON_IPY_BUILD_CMDS
	(cd $(@D); \
		$(TARGET_CONFIGURE_OPTS) \
		$(HOST_DIR)/usr/bin/python setup.py build_ext \
		--include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) \
	)
	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
endef

define PYTHON_IPY_INSTALL_TARGET_CMDS
	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
endef

$(eval $(generic-package))
$(eval $(python-package))