[Buildroot] [PATCH v4 4/5] New package: python-setuptools

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Dec 22 12:17:41 UTC 2011


Le Thu, 22 Dec 2011 13:08:34 +0100,
yegorslists at googlemail.com a écrit :

> +PYTHON_SETUPTOOLS_DEPENDENCIES = host-python

Shouldn't this be:

PYTHON_SETUPTOOLS_DEPENDENCIES = python

HOST_PYTHON_SETUPTOOLS_DEPENDENCIES = host-python

> +define HOST_PYTHON_SETUPTOOLS_BUILD_CMDS
> +	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
> +endef
> +
> +define HOST_PYTHON_SETUPTOOLS_INSTALL_CMDS
> +	(cd $(@D); PYTHONPATH="$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"\
> +	$(HOST_DIR)/usr/bin/python setup.py install --prefix=$(HOST_DIR)/usr)
> +endef
> +
> +define PYTHON_SETUPTOOLS_INSTALL_TARGET_CMDS
> +	(cd $(@D); PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"\
> +	$(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
> +endef

You have build/install for the host case, but only install for the
target case. Does it really work?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list