[Buildroot] [PATCH] New package: python-setuptools

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Dec 21 12:42:13 UTC 2011


Le Wed, 21 Dec 2011 11:52:55 +0100,
yegorslists at googlemail.com a écrit :

> +PYTHON_INSTALL_STAGING = YES

Your .mk file does not contain the build and install commands for a
target version of this package, so this line is useless.

> +PYTHON_SETUPTOOLS_DEPENDENCIES = python

Again, this won't be used since you have defined only a host variant
for your package. What you need is:

HOST_PYTHON_SETUPTOOLS_DEPENDENCIES = host-python

> +	(cd $(@D); PYTHONPATH="$(HOST_DIR)/usr/lib/python2.7/site-packages"\

Use $(PYTHON_VERSION_MAJOR) instead of hardcoding 2.7.

> +$(eval $(call GENTARGETS))

Remove this line this you haven't implemented a target variant for this
package.

> +source "package/python-setuptools/Config.in"

And remove the Config.in file altogether as you haven't implemented a
target variant for this package.

Of course, if you intend to also support building setuptools for the
target, keep the Config.in file and the $(eval $(call GENTARGETS))
line, but remember to implement the BUILD_CMDS and INSTALL_*_CMDS as
well.

Regards,

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