Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 4/5] New package: python-setuptools
Date: Thu, 22 Dec 2011 13:17:41 +0100	[thread overview]
Message-ID: <20111222131741.4b15d2fe@skate> (raw)
In-Reply-To: <1324555715-32123-5-git-send-email-yegorslists@googlemail.com>

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

  reply	other threads:[~2011-12-22 12:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22 12:08 [Buildroot] [PATCH v4 0/5] Python related changes yegorslists at googlemail.com
2011-12-22 12:08 ` [Buildroot] [PATCH v4 1/5] Python: add external modules option yegorslists at googlemail.com
2011-12-22 12:08 ` [Buildroot] [PATCH v4 2/5] Python: enable zlib support for the host package yegorslists at googlemail.com
2011-12-22 12:08 ` [Buildroot] [PATCH v4 3/5] New package: python-dpkt yegorslists at googlemail.com
2011-12-22 12:08 ` [Buildroot] [PATCH v4 4/5] New package: python-setuptools yegorslists at googlemail.com
2011-12-22 12:17   ` Thomas Petazzoni [this message]
2011-12-22 14:04     ` Yegor Yefremov
2011-12-22 12:08 ` [Buildroot] [PATCH v4 5/5] New package: python-netifaces yegorslists at googlemail.com
2011-12-22 12:13   ` Yegor Yefremov
2011-12-23  8:26     ` Yegor Yefremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111222131741.4b15d2fe@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox